public class CertifiedRoleImpl extends EncapsulatedPKIDataType implements CertifiedRole
CertifiedRole
element that supports the
DOM XML representation and processing mechanism.encoding_
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED
ENCODING_BER, ENCODING_CER, ENCODING_DER, ENCODING_PER, ENCODING_XER
Constructor and Description |
---|
CertifiedRoleImpl(AttributeCertificate attributeCertificate,
String id,
String encoding)
Creates a new instance of this
CertifiedRoleImpl with the
given attribute certificate. |
CertifiedRoleImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
CertifiedRoleImpl with the
given context and node. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAttributeCertificate()
Returns the attribute certificate.
|
protected InputStream |
getEncodedPKIValue(String encoding)
Returns the encapsulated PKI value encoded with the specified encoding.
|
String |
getLocalName() |
protected void |
setEncodedPKIValue(InputStream encoded,
String encoding)
Sets the encapsulated PKI value encoded with the specified encoding.
|
getEncoding, getId, marshalAttributes, marshalElement, marshalIDAttribute, unmarshalAttributes, unmarshalElement
getInstance, getNamespace, getParentQualifyingPropertiesOf, getParentSignatureOf
addBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalIDAttribute, unmarshalStructures, wrapNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEncoding, getId
isFeatureSupported
public CertifiedRoleImpl(DOMCryptoContext context, Node node) throws MarshalException
CertifiedRoleImpl
with the
given context and node.context
- the contextnode
- the node to unmarshal fromMarshalException
- if an exception occurs during unmarshalingpublic CertifiedRoleImpl(AttributeCertificate attributeCertificate, String id, String encoding)
CertifiedRoleImpl
with the
given attribute certificate.attributeCertificate
- the attribute certificateid
- the id
-attribute valueencoding
- the encodingNullPointerException
- if config
or attributeCertficate
is
null
protected InputStream getEncodedPKIValue(String encoding) throws MarshalException
EncapsulatedPKIDataType
getEncodedPKIValue
in class EncapsulatedPKIDataType
encoding
- the encodingMarshalException
- if the specified encoding
is not supported or the
encoding failsEncapsulatedPKIDataType.getEncodedPKIValue(java.lang.String)
protected void setEncodedPKIValue(InputStream encoded, String encoding) throws MarshalException
EncapsulatedPKIDataType
setEncodedPKIValue
in class EncapsulatedPKIDataType
encoded
- the encoded PKI valueencoding
- the encodingMarshalException
- if the specified encoding
is not supported or the
decoding failsEncapsulatedPKIDataType.setEncodedPKIValue(java.io.InputStream,
java.lang.String)
public byte[] getAttributeCertificate()
CertifiedRole
getAttributeCertificate
in interface CertifiedRole
CertifiedRole.getAttributeCertificate()
public String getLocalName()
getLocalName
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getLocalName()
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC