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, [email protected]
-
-
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 KeyInfo
getKeyInfo()
KeySelectorResult
getKeySelectorResult()
List
getObjects()
XMLSignature.SignatureValue
getSignatureValue()
SignedInfo
getSignedInfo()
String
getType()
Key
getVerificationKey()
boolean
isFeatureSupported(String string)
void
setObjects(List<XMLObject> objects)
void
setSignedInfo(byte[] si)
void
setSignedInfo(org.jvnet.staxex.XMLStreamReaderEx streamReader)
void
setType(String type)
void
setVerificationKey(Key key)
void
sign(XMLSignContext xMLSignContext)
boolean
validate(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:
validate
in interfaceXMLSignature
- Throws:
XMLSignatureException
-
getObjects
public List getObjects()
- Specified by:
getObjects
in interfaceXMLSignature
-
sign
public void sign(XMLSignContext xMLSignContext) throws MarshalException, XMLSignatureException
- Specified by:
sign
in interfaceXMLSignature
- Throws:
MarshalException
XMLSignatureException
-
getKeySelectorResult
public KeySelectorResult getKeySelectorResult()
- Specified by:
getKeySelectorResult
in interfaceXMLSignature
-
isFeatureSupported
public boolean isFeatureSupported(String string)
- Specified by:
isFeatureSupported
in interfaceXMLStructure
-
getSignatureValue
public XMLSignature.SignatureValue getSignatureValue()
- Specified by:
getSignatureValue
in interfaceXMLSignature
-
getSignedInfo
public SignedInfo getSignedInfo()
- Specified by:
getSignedInfo
in interfaceXMLSignature
-
getKeyInfo
public KeyInfo getKeyInfo()
- Specified by:
getKeyInfo
in interfaceXMLSignature
-
getType
public String getType()
-
setType
public void setType(String type)
-
-