com.sun.xml.ws.security.opt.crypto.dsig
Class Signature

java.lang.Object
  extended by com.sun.xml.security.core.dsig.SignatureType
      extended by 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
Signature()
          Creates a new instance of Signature
 
Method Summary
 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(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
 

Constructor Detail

Signature

public Signature()
Creates a new instance of Signature

Method Detail

setSignedInfo

public void setSignedInfo(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 interface XMLSignature
Throws:
XMLSignatureException

getObjects

public List getObjects()
Specified by:
getObjects in interface XMLSignature

sign

public void sign(XMLSignContext xMLSignContext)
          throws MarshalException,
                 XMLSignatureException
Specified by:
sign in interface XMLSignature
Throws:
MarshalException
XMLSignatureException

getKeySelectorResult

public KeySelectorResult getKeySelectorResult()
Specified by:
getKeySelectorResult in interface XMLSignature

isFeatureSupported

public boolean isFeatureSupported(String string)
Specified by:
isFeatureSupported in interface XMLStructure

getSignatureValue

public XMLSignature.SignatureValue getSignatureValue()
Specified by:
getSignatureValue in interface XMLSignature

getSignedInfo

public SignedInfo getSignedInfo()
Specified by:
getSignedInfo in interface XMLSignature

getKeyInfo

public KeyInfo getKeyInfo()
Specified by:
getKeyInfo in interface XMLSignature

setObjects

public void setObjects(List<XMLObject> objects)

getType

public String getType()

setType

public void setType(String type)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.