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:
javax.xml.crypto.dsig.XMLSignature, javax.xml.crypto.XMLStructure

public class Signature
extends SignatureType
implements javax.xml.crypto.dsig.XMLSignature

Author:
Abhijit Das, K.Venugopal@sun.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.xml.crypto.dsig.XMLSignature
javax.xml.crypto.dsig.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()
           
 javax.xml.crypto.KeySelectorResult getKeySelectorResult()
           
 List getObjects()
           
 javax.xml.crypto.dsig.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(javax.xml.crypto.dsig.XMLSignContext xMLSignContext)
           
 boolean validate(javax.xml.crypto.dsig.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(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(javax.xml.crypto.dsig.XMLValidateContext xMLValidateContext)
                 throws javax.xml.crypto.dsig.XMLSignatureException
Specified by:
validate in interface javax.xml.crypto.dsig.XMLSignature
Throws:
javax.xml.crypto.dsig.XMLSignatureException

getObjects

public List getObjects()
Specified by:
getObjects in interface javax.xml.crypto.dsig.XMLSignature

sign

public void sign(javax.xml.crypto.dsig.XMLSignContext xMLSignContext)
          throws javax.xml.crypto.MarshalException,
                 javax.xml.crypto.dsig.XMLSignatureException
Specified by:
sign in interface javax.xml.crypto.dsig.XMLSignature
Throws:
javax.xml.crypto.MarshalException
javax.xml.crypto.dsig.XMLSignatureException

getKeySelectorResult

public javax.xml.crypto.KeySelectorResult getKeySelectorResult()
Specified by:
getKeySelectorResult in interface javax.xml.crypto.dsig.XMLSignature

isFeatureSupported

public boolean isFeatureSupported(String string)
Specified by:
isFeatureSupported in interface javax.xml.crypto.XMLStructure

getSignatureValue

public javax.xml.crypto.dsig.XMLSignature.SignatureValue getSignatureValue()
Specified by:
getSignatureValue in interface javax.xml.crypto.dsig.XMLSignature

getSignedInfo

public SignedInfo getSignedInfo()
Specified by:
getSignedInfo in interface javax.xml.crypto.dsig.XMLSignature

getKeyInfo

public KeyInfo getKeyInfo()
Specified by:
getKeyInfo in interface javax.xml.crypto.dsig.XMLSignature

setObjects

public void setObjects(List<XMLObject> objects)

getType

public String getType()

setType

public void setType(String type)


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