com.sun.xml.ws.security.opt.crypto.jaxb
Class JAXBSignatureFactory

java.lang.Object
  extended by javax.xml.crypto.dsig.XMLSignatureFactory
      extended by com.sun.xml.ws.security.opt.crypto.jaxb.JAXBSignatureFactory

public class JAXBSignatureFactory
extends javax.xml.crypto.dsig.XMLSignatureFactory

Author:
Abhijit Das

Method Summary
 JAXBContext getJAXBContext()
           
 javax.xml.crypto.URIDereferencer getURIDereferencer()
           
 boolean isFeatureSupported(java.lang.String string)
           
 javax.xml.crypto.dsig.CanonicalizationMethod newCanonicalizationMethod(java.lang.String algorithm, javax.xml.crypto.dsig.spec.C14NMethodParameterSpec c14NMethodParameterSpec)
          Creates a CanonicalizationMethod with the specified parameters
 javax.xml.crypto.dsig.CanonicalizationMethod newCanonicalizationMethod(java.lang.String algorithm, javax.xml.crypto.XMLStructure xMLStructure)
          Creates a CanonicalizationMethod with the specified parameters
 javax.xml.crypto.dsig.DigestMethod newDigestMethod(java.lang.String algorithm, javax.xml.crypto.dsig.spec.DigestMethodParameterSpec digestMethodParameterSpec)
          Creates a DigestMethod with the specified parameters
 DSAKeyValue newDSAKeyValue(byte[] p, byte[] q, byte[] g, byte[] y, byte[] j, byte[] seed, byte[] pgenCounter)
          Creates a DSAKeyValue with the specified parameters
static JAXBSignatureFactory newInstance()
           
 javax.xml.crypto.dsig.keyinfo.KeyInfo newKeyInfo(java.util.List content)
           
 KeyInfo newKeyInfo(java.lang.String id, java.util.List content)
          Creates a KeyInfo with the specified parameters
 KeyName newKeyName(java.lang.String name)
          Creates a KeyName with the specified parameters
 KeyValue newKeyValue(java.util.List content)
          Creates a KeyValue with the specified parameters
 javax.xml.crypto.dsig.Manifest newManifest(java.util.List list)
          Creates a Manifest with the specified parameters
 javax.xml.crypto.dsig.Manifest newManifest(java.util.List list, java.lang.String string)
          Creates a Manifest with the specified parameters
 PGPData newPGPData(java.util.List content)
          Creates a PGPData with the specified parameters
 javax.xml.crypto.dsig.Reference newReference(java.lang.String uri, javax.xml.crypto.dsig.DigestMethod digestMethod)
          Creates a Reference with the specified URI and digest method.
 javax.xml.crypto.dsig.Reference newReference(java.lang.String string, javax.xml.crypto.dsig.DigestMethod digestMethod, java.util.List list, javax.xml.crypto.Data data, java.util.List list0, java.lang.String string0, java.lang.String string1)
          Creates a Reference with the specified parameters
 javax.xml.crypto.dsig.Reference newReference(java.lang.String uri, javax.xml.crypto.dsig.DigestMethod digestMethod, java.util.List transforms, java.lang.String type, java.lang.String id)
          Creates a Reference with the specified parameters
 javax.xml.crypto.dsig.Reference newReference(java.lang.String uri, javax.xml.crypto.dsig.DigestMethod digestMethod, java.util.List transforms, java.lang.String type, java.lang.String id, byte[] digestValue)
          Creates a Reference with the specified parameters
 RetrievalMethod newRetrievalMethod(Transforms transforms, java.lang.String type, java.lang.String uri)
          Creates a RetrievalMethod with the specified parameters
 RSAKeyValue newRSAKeyValue(byte[] modulas, byte[] exponent)
          Creates a RSAKeyValue with the specified parameters
 javax.xml.crypto.dsig.SignatureMethod newSignatureMethod(java.lang.String algorithm, javax.xml.crypto.dsig.spec.SignatureMethodParameterSpec signatureMethodParameterSpec)
          Creates a SignatureMethod with the specified parameters
 javax.xml.crypto.dsig.SignatureProperties newSignatureProperties(java.util.List list, java.lang.String string)
          Creates a SignatureProperties with the specified parameters
 javax.xml.crypto.dsig.SignatureProperty newSignatureProperty(java.util.List list, java.lang.String string, java.lang.String string0)
          Creates a SignatureProperty with the specified parameters
 javax.xml.crypto.dsig.SignedInfo newSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod canonicalizationMethod, javax.xml.crypto.dsig.SignatureMethod signatureMethod, java.util.List references)
          Creates a SignedInfo with the specified parameters
 javax.xml.crypto.dsig.SignedInfo newSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod canonicalizationMethod, javax.xml.crypto.dsig.SignatureMethod signatureMethod, java.util.List references, java.lang.String id)
          Creates a SignedInfo with the specified parameters
 SPKIData newSPKIData(java.util.List spkiSexpAndAny)
          Creates a SPKIData with the specified parameters
 javax.xml.crypto.dsig.Transform newTransform(java.lang.String algorithm, javax.xml.crypto.dsig.spec.TransformParameterSpec transformParameterSpec)
          Creates a Transform with the specified parameters
 javax.xml.crypto.dsig.Transform newTransform(java.lang.String algorithm, javax.xml.crypto.XMLStructure xMLStructure)
          Creates a Transform with the specified parameters
 X509Data newX509Data(java.util.List content)
          Creates a X509Data with the specified parameters
 X509IssuerSerial newX509IssuerSerial(java.lang.String issuer, java.math.BigInteger serialno)
          Creates a X509IssuerSerial with the specified parameters
 javax.xml.crypto.dsig.XMLObject newXMLObject(java.util.List content, java.lang.String id, java.lang.String mime, java.lang.String encoding)
          Creates a XMLObject with the specified parameters
 javax.xml.crypto.dsig.XMLSignature newXMLSignature(javax.xml.crypto.dsig.SignedInfo signedInfo, javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo)
          Creates an XMLSignature and initializes it with the contents of the specified SignedInfo and KeyInfo objects.
 javax.xml.crypto.dsig.XMLSignature newXMLSignature(javax.xml.crypto.dsig.SignedInfo signedInfo, javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo, java.util.List objects, java.lang.String id, java.lang.String type)
          Creates an XMLSignature and initializes it with the specified parameters.
 javax.xml.crypto.dsig.XMLSignature unmarshalXMLSignature(javax.xml.crypto.XMLStructure xMLStructure)
           
 javax.xml.crypto.dsig.XMLSignature unmarshalXMLSignature(javax.xml.crypto.dsig.XMLValidateContext xMLValidateContext)
           
 
Methods inherited from class javax.xml.crypto.dsig.XMLSignatureFactory
getInstance, getInstance, getInstance, getInstance, getKeyInfoFactory, getMechanismType, getProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static JAXBSignatureFactory newInstance()

getJAXBContext

public JAXBContext getJAXBContext()
                           throws JAXBException
Throws:
JAXBException

newXMLSignature

public javax.xml.crypto.dsig.XMLSignature newXMLSignature(javax.xml.crypto.dsig.SignedInfo signedInfo,
                                                          javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo)
Creates an XMLSignature and initializes it with the contents of the specified SignedInfo and KeyInfo objects.

Specified by:
newXMLSignature in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
signedInfo - - signed info
keyInfo - - key info (may be null)
Returns:
XMLSignature

newXMLSignature

public javax.xml.crypto.dsig.XMLSignature newXMLSignature(javax.xml.crypto.dsig.SignedInfo signedInfo,
                                                          javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo,
                                                          java.util.List objects,
                                                          java.lang.String id,
                                                          java.lang.String type)
Creates an XMLSignature and initializes it with the specified parameters.

Specified by:
newXMLSignature in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
signedInfo - - the Signed Info
keyInfo - - ths key info (may be null)
objects - - a list of XMLObjects (may be null)
id - - the id (may be null)
type - - the type (may be null)
Returns:
XMLSignature

newReference

public javax.xml.crypto.dsig.Reference newReference(java.lang.String uri,
                                                    javax.xml.crypto.dsig.DigestMethod digestMethod)
Creates a Reference with the specified URI and digest method.

Specified by:
newReference in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
uri -
digestMethod -
Returns:
Reference

newReference

public javax.xml.crypto.dsig.Reference newReference(java.lang.String uri,
                                                    javax.xml.crypto.dsig.DigestMethod digestMethod,
                                                    java.util.List transforms,
                                                    java.lang.String type,
                                                    java.lang.String id)
Creates a Reference with the specified parameters

Specified by:
newReference in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
uri -
digestMethod -
transforms -
type -
id -
Returns:
Reference

newReference

public javax.xml.crypto.dsig.Reference newReference(java.lang.String uri,
                                                    javax.xml.crypto.dsig.DigestMethod digestMethod,
                                                    java.util.List transforms,
                                                    java.lang.String type,
                                                    java.lang.String id,
                                                    byte[] digestValue)
Creates a Reference with the specified parameters

Specified by:
newReference in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
uri -
digestMethod -
transforms -
type -
id -
digestValue -
Returns:
Reference

newReference

public javax.xml.crypto.dsig.Reference newReference(java.lang.String string,
                                                    javax.xml.crypto.dsig.DigestMethod digestMethod,
                                                    java.util.List list,
                                                    javax.xml.crypto.Data data,
                                                    java.util.List list0,
                                                    java.lang.String string0,
                                                    java.lang.String string1)
Creates a Reference with the specified parameters

Specified by:
newReference in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
string -
digestMethod -
list -
data -
list0 -
string0 -
string1 -
Returns:
Reference

newSignedInfo

public javax.xml.crypto.dsig.SignedInfo newSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod canonicalizationMethod,
                                                      javax.xml.crypto.dsig.SignatureMethod signatureMethod,
                                                      java.util.List references)
Creates a SignedInfo with the specified parameters

Specified by:
newSignedInfo in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
canonicalizationMethod -
signatureMethod -
references -
Returns:
SignedInfo

newSignedInfo

public javax.xml.crypto.dsig.SignedInfo newSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod canonicalizationMethod,
                                                      javax.xml.crypto.dsig.SignatureMethod signatureMethod,
                                                      java.util.List references,
                                                      java.lang.String id)
Creates a SignedInfo with the specified parameters

Specified by:
newSignedInfo in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
canonicalizationMethod -
signatureMethod -
references -
id -
Returns:
SignedInfo

newXMLObject

public javax.xml.crypto.dsig.XMLObject newXMLObject(java.util.List content,
                                                    java.lang.String id,
                                                    java.lang.String mime,
                                                    java.lang.String encoding)
Creates a XMLObject with the specified parameters

Specified by:
newXMLObject in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
content -
id -
mime -
encoding -
Returns:
XMLObject

newManifest

public javax.xml.crypto.dsig.Manifest newManifest(java.util.List list)
Creates a Manifest with the specified parameters

Specified by:
newManifest in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
list -
Returns:
Manifest

newManifest

public javax.xml.crypto.dsig.Manifest newManifest(java.util.List list,
                                                  java.lang.String string)
Creates a Manifest with the specified parameters

Specified by:
newManifest in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
list -
string -
Returns:
Manifest

newSignatureProperty

public javax.xml.crypto.dsig.SignatureProperty newSignatureProperty(java.util.List list,
                                                                    java.lang.String string,
                                                                    java.lang.String string0)
Creates a SignatureProperty with the specified parameters

Specified by:
newSignatureProperty in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
list -
string -
string0 -
Returns:
SignatureProperty

newSignatureProperties

public javax.xml.crypto.dsig.SignatureProperties newSignatureProperties(java.util.List list,
                                                                        java.lang.String string)
Creates a SignatureProperties with the specified parameters

Specified by:
newSignatureProperties in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
list -
string -
Returns:
SignatureProperties

newDigestMethod

public javax.xml.crypto.dsig.DigestMethod newDigestMethod(java.lang.String algorithm,
                                                          javax.xml.crypto.dsig.spec.DigestMethodParameterSpec digestMethodParameterSpec)
                                                   throws java.security.NoSuchAlgorithmException,
                                                          java.security.InvalidAlgorithmParameterException
Creates a DigestMethod with the specified parameters

Specified by:
newDigestMethod in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
algorithm -
digestMethodParameterSpec -
Returns:
DigestMethod
Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException

newSignatureMethod

public javax.xml.crypto.dsig.SignatureMethod newSignatureMethod(java.lang.String algorithm,
                                                                javax.xml.crypto.dsig.spec.SignatureMethodParameterSpec signatureMethodParameterSpec)
                                                         throws java.security.NoSuchAlgorithmException,
                                                                java.security.InvalidAlgorithmParameterException
Creates a SignatureMethod with the specified parameters

Specified by:
newSignatureMethod in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
algorithm -
signatureMethodParameterSpec -
Returns:
SignatureMethod
Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException

newTransform

public javax.xml.crypto.dsig.Transform newTransform(java.lang.String algorithm,
                                                    javax.xml.crypto.dsig.spec.TransformParameterSpec transformParameterSpec)
                                             throws java.security.NoSuchAlgorithmException,
                                                    java.security.InvalidAlgorithmParameterException
Creates a Transform with the specified parameters

Specified by:
newTransform in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
algorithm -
transformParameterSpec -
Returns:
Transforms
Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException

newTransform

public javax.xml.crypto.dsig.Transform newTransform(java.lang.String algorithm,
                                                    javax.xml.crypto.XMLStructure xMLStructure)
                                             throws java.security.NoSuchAlgorithmException,
                                                    java.security.InvalidAlgorithmParameterException
Creates a Transform with the specified parameters

Specified by:
newTransform in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
algorithm -
xMLStructure -
Returns:
Transform
Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException

newCanonicalizationMethod

public javax.xml.crypto.dsig.CanonicalizationMethod newCanonicalizationMethod(java.lang.String algorithm,
                                                                              javax.xml.crypto.dsig.spec.C14NMethodParameterSpec c14NMethodParameterSpec)
                                                                       throws java.security.NoSuchAlgorithmException,
                                                                              java.security.InvalidAlgorithmParameterException
Creates a CanonicalizationMethod with the specified parameters

Specified by:
newCanonicalizationMethod in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
algorithm -
c14NMethodParameterSpec -
Returns:
CanonicalizationMethod
Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException

newCanonicalizationMethod

public javax.xml.crypto.dsig.CanonicalizationMethod newCanonicalizationMethod(java.lang.String algorithm,
                                                                              javax.xml.crypto.XMLStructure xMLStructure)
                                                                       throws java.security.NoSuchAlgorithmException,
                                                                              java.security.InvalidAlgorithmParameterException
Creates a CanonicalizationMethod with the specified parameters

Specified by:
newCanonicalizationMethod in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
algorithm -
xMLStructure -
Returns:
CanonicalizationMethod
Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException

newKeyInfo

public javax.xml.crypto.dsig.keyinfo.KeyInfo newKeyInfo(java.util.List content)

newDSAKeyValue

public DSAKeyValue newDSAKeyValue(byte[] p,
                                  byte[] q,
                                  byte[] g,
                                  byte[] y,
                                  byte[] j,
                                  byte[] seed,
                                  byte[] pgenCounter)
Creates a DSAKeyValue with the specified parameters

Parameters:
p -
q -
g -
y -
j -
seed -
pgenCounter -
Returns:
DSAKeyValue

newKeyInfo

public KeyInfo newKeyInfo(java.lang.String id,
                          java.util.List content)
Creates a KeyInfo with the specified parameters

Parameters:
id -
content -
Returns:
KeyInfo

newKeyName

public KeyName newKeyName(java.lang.String name)
Creates a KeyName with the specified parameters

Parameters:
name -
Returns:
KeyName

newKeyValue

public KeyValue newKeyValue(java.util.List content)
Creates a KeyValue with the specified parameters

Parameters:
content -
Returns:
KeyValue

newPGPData

public PGPData newPGPData(java.util.List content)
Creates a PGPData with the specified parameters

Parameters:
content -
Returns:
PGPData

newRSAKeyValue

public RSAKeyValue newRSAKeyValue(byte[] modulas,
                                  byte[] exponent)
Creates a RSAKeyValue with the specified parameters

Parameters:
modulas -
exponent -
Returns:
RSAKeyValue

newRetrievalMethod

public RetrievalMethod newRetrievalMethod(Transforms transforms,
                                          java.lang.String type,
                                          java.lang.String uri)
Creates a RetrievalMethod with the specified parameters

Parameters:
transforms -
type -
uri -
Returns:
RetrievalMethod

newSPKIData

public SPKIData newSPKIData(java.util.List spkiSexpAndAny)
Creates a SPKIData with the specified parameters

Parameters:
spkiSexpAndAny -
Returns:
SPKIData

newX509Data

public X509Data newX509Data(java.util.List content)
Creates a X509Data with the specified parameters

Parameters:
content -
Returns:
X509Data

newX509IssuerSerial

public X509IssuerSerial newX509IssuerSerial(java.lang.String issuer,
                                            java.math.BigInteger serialno)
Creates a X509IssuerSerial with the specified parameters

Parameters:
issuer -
serialno -
Returns:
X509IssuerSerial

unmarshalXMLSignature

public javax.xml.crypto.dsig.XMLSignature unmarshalXMLSignature(javax.xml.crypto.dsig.XMLValidateContext xMLValidateContext)
                                                         throws javax.xml.crypto.MarshalException
Specified by:
unmarshalXMLSignature in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
xMLValidateContext -
Returns:
Throws:
javax.xml.crypto.MarshalException

unmarshalXMLSignature

public javax.xml.crypto.dsig.XMLSignature unmarshalXMLSignature(javax.xml.crypto.XMLStructure xMLStructure)
                                                         throws javax.xml.crypto.MarshalException
Specified by:
unmarshalXMLSignature in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
xMLStructure -
Returns:
Throws:
javax.xml.crypto.MarshalException

isFeatureSupported

public boolean isFeatureSupported(java.lang.String string)
Specified by:
isFeatureSupported in class javax.xml.crypto.dsig.XMLSignatureFactory
Parameters:
string -
Returns:

getURIDereferencer

public javax.xml.crypto.URIDereferencer getURIDereferencer()
Specified by:
getURIDereferencer in class javax.xml.crypto.dsig.XMLSignatureFactory
Returns:


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