Top Description Constructors Methods
com.sun.org.apache.xml.internal.security.keys.content.x509

public Class XMLX509Digest

extends Signature11ElementProxy
implements XMLX509DataContent
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509DataContent
Imports
java.security.MessageDigest, java.security.cert.X509Certificate, com.sun.org.apache.xml.internal.security.algorithms.JCEMapper, com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException, com.sun.org.apache.xml.internal.security.utils.Constants, .Signature11ElementProxy, org.w3c.dom.Attr, .Document, .Element

Provides content model support for the dsig11:X509Digest element.

Constructor Summary

AccessConstructor and Description
public
XMLX509Digest(Element element, String baseURI)

Constructor XMLX509Digest

public
XMLX509Digest(Document doc, byte[] digestBytes, String algorithmURI)

Constructor XMLX509Digest

public
XMLX509Digest(Document doc, X509Certificate x509certificate, String algorithmURI)

Constructor XMLX509Digest

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

Algorithm string
getAlgorithm
()

Method getAlgorithm

public Attr

Returns:

the Algorithm attribute
getAlgorithmAttr
()

Method getAlgorithmAttr

public String
getBaseLocalName()

Implements abstract com.sun.org.apache.xml.internal.security.utils.ElementProxy.getBaseLocalName.

Returns the localname of the Elements of the sub-class.

public byte[]

Returns:

the digestbytes
getDigestBytes
()

Method getDigestBytes

public static byte[]

Returns:

digest bytes from the given certificate
getDigestBytesFromCert
(X509Certificate cert, String algorithmURI)

Method getDigestBytesFromCert

Inherited from com.sun.org.apache.xml.internal.security.utils.Signature11ElementProxy:
getBaseNamespace

Constructor Detail

XMLX509Digestback to summary
public XMLX509Digest(Element element, String baseURI) throws XMLSecurityException

Constructor XMLX509Digest

XMLX509Digestback to summary
public XMLX509Digest(Document doc, byte[] digestBytes, String algorithmURI)

Constructor XMLX509Digest

XMLX509Digestback to summary
public XMLX509Digest(Document doc, X509Certificate x509certificate, String algorithmURI) throws XMLSecurityException

Constructor XMLX509Digest

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Method getAlgorithm

Returns:String

Algorithm string

getAlgorithmAttrback to summary
public Attr getAlgorithmAttr()

Method getAlgorithmAttr

Returns:Attr

the Algorithm attribute

getBaseLocalNameback to summary
public String getBaseLocalName()

Implements abstract com.sun.org.apache.xml.internal.security.utils.ElementProxy.getBaseLocalName.

Doc from com.sun.org.apache.xml.internal.security.utils.ElementProxy.getBaseLocalName.

Returns the localname of the Elements of the sub-class.

Returns:String

the localname of the Elements of the sub-class.

Annotations
@Override
getDigestBytesback to summary
public byte[] getDigestBytes() throws XMLSecurityException

Method getDigestBytes

Returns:byte[]

the digestbytes

getDigestBytesFromCertback to summary
public static byte[] getDigestBytesFromCert(X509Certificate cert, String algorithmURI) throws XMLSecurityException

Method getDigestBytesFromCert

Returns:byte[]

digest bytes from the given certificate