Class Signature
- java.lang.Object
-
- com.sun.xml.security.core.dsig.SignatureType
-
- com.sun.xml.ws.security.opt.crypto.dsig.Signature
-
- All Implemented Interfaces:
XMLSignature,XMLStructure
public class Signature extends SignatureType implements XMLSignature
- Author:
- Abhijit Das, K.Venugopal@sun.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.xml.crypto.dsig.XMLSignature
XMLSignature.SignatureValue
-
-
Field Summary
-
Fields inherited from class com.sun.xml.security.core.dsig.SignatureType
id, keyInfo, object, signatureValue, signedInfo
-
Fields inherited from interface javax.xml.crypto.dsig.XMLSignature
XMLNS
-
-
Constructor Summary
Constructors Constructor Description Signature()Creates a new instance of Signature
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyInfogetKeyInfo()KeySelectorResultgetKeySelectorResult()ListgetObjects()XMLSignature.SignatureValuegetSignatureValue()SignedInfogetSignedInfo()StringgetType()KeygetVerificationKey()booleanisFeatureSupported(String string)voidsetObjects(List<XMLObject> objects)voidsetSignedInfo(byte[] si)voidsetSignedInfo(org.jvnet.staxex.XMLStreamReaderEx streamReader)voidsetType(String type)voidsetVerificationKey(Key key)voidsign(XMLSignContext xMLSignContext)booleanvalidate(XMLValidateContext xMLValidateContext)-
Methods inherited from class com.sun.xml.security.core.dsig.SignatureType
getId, getObject, setId, setKeyInfo, setSignatureValue, setSignedInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.crypto.dsig.XMLSignature
getId
-
-
-
-
Method Detail
-
setSignedInfo
public void setSignedInfo(org.jvnet.staxex.XMLStreamReaderEx streamReader)
-
setSignedInfo
public void setSignedInfo(byte[] si)
-
setVerificationKey
public void setVerificationKey(Key key)
-
getVerificationKey
public Key getVerificationKey()
-
validate
public boolean validate(XMLValidateContext xMLValidateContext) throws XMLSignatureException
- Specified by:
validatein interfaceXMLSignature- Throws:
XMLSignatureException
-
getObjects
public List getObjects()
- Specified by:
getObjectsin interfaceXMLSignature
-
sign
public void sign(XMLSignContext xMLSignContext) throws MarshalException, XMLSignatureException
- Specified by:
signin interfaceXMLSignature- Throws:
MarshalExceptionXMLSignatureException
-
getKeySelectorResult
public KeySelectorResult getKeySelectorResult()
- Specified by:
getKeySelectorResultin interfaceXMLSignature
-
isFeatureSupported
public boolean isFeatureSupported(String string)
- Specified by:
isFeatureSupportedin interfaceXMLStructure
-
getSignatureValue
public XMLSignature.SignatureValue getSignatureValue()
- Specified by:
getSignatureValuein interfaceXMLSignature
-
getSignedInfo
public SignedInfo getSignedInfo()
- Specified by:
getSignedInfoin interfaceXMLSignature
-
getKeyInfo
public KeyInfo getKeyInfo()
- Specified by:
getKeyInfoin interfaceXMLSignature
-
getType
public String getType()
-
setType
public void setType(String type)
-
-