public class EncapsulatedX509CertificateImpl extends EncapsulatedPKIDataType implements EncapsulatedX509Certificate
EncapsulatedX509Certificate
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 |
---|
EncapsulatedX509CertificateImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
EncapsulatedX509CertificateImpl
with the given context and node. |
EncapsulatedX509CertificateImpl(X509Certificate certificate,
String id,
String encoding)
Creates a new instance of this
EncapsulatedX509CertificateImpl
with the given X509 certificate, id -attribute value and
encoding |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getEncodedPKIValue(String encoding)
Returns the encapsulated PKI value encoded with the specified encoding.
|
String |
getLocalName() |
X509Certificate |
getX509Certificate()
Returns the encapsulated X509 certificate.
|
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 EncapsulatedX509CertificateImpl(DOMCryptoContext context, Node node) throws MarshalException
EncapsulatedX509CertificateImpl
with the given context and node.context
- the contextnode
- the node to unmarshal fromMarshalException
- if an exception occurs during marshalingpublic EncapsulatedX509CertificateImpl(X509Certificate certificate, String id, String encoding)
EncapsulatedX509CertificateImpl
with the given X509 certificate, id
-attribute value and
encodingcertificate
- the X509 certificateid
- the id
-attribute value (may be null
)encoding
- the encoding (may be null
)NullPointerException
- if config
or certificate
is
null
IllegalArgumentException
- if encoding
is not supportedprotected 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 String getLocalName()
getLocalName
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getLocalName()
public X509Certificate getX509Certificate()
EncapsulatedX509Certificate
getX509Certificate
in interface EncapsulatedX509Certificate
EncapsulatedX509Certificate.getX509Certificate()
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC