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 XMLSignatureFactory

Author:
Abhijit Das

Method Summary
 JAXBContext getJAXBContext()
           
 URIDereferencer getURIDereferencer()
           
 boolean isFeatureSupported(String string)
           
 CanonicalizationMethod newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec c14NMethodParameterSpec)
          Creates a CanonicalizationMethod with the specified parameters
 CanonicalizationMethod newCanonicalizationMethod(String algorithm, XMLStructure xMLStructure)
          Creates a CanonicalizationMethod with the specified parameters
 DigestMethod newDigestMethod(String algorithm, 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()
           
 KeyInfo newKeyInfo(List content)
           
 KeyInfo newKeyInfo(String id, List content)
          Creates a KeyInfo with the specified parameters
 KeyName newKeyName(String name)
          Creates a KeyName with the specified parameters
 KeyValue newKeyValue(List content)
          Creates a KeyValue with the specified parameters
 Manifest newManifest(List list)
          Creates a Manifest with the specified parameters
 Manifest newManifest(List list, String string)
          Creates a Manifest with the specified parameters
 PGPData newPGPData(List content)
          Creates a PGPData with the specified parameters
 Reference newReference(String uri, DigestMethod digestMethod)
          Creates a Reference with the specified URI and digest method.
 Reference newReference(String string, DigestMethod digestMethod, List list, Data data, List list0, String string0, String string1)
          Creates a Reference with the specified parameters
 Reference newReference(String uri, DigestMethod digestMethod, List transforms, String type, String id)
          Creates a Reference with the specified parameters
 Reference newReference(String uri, DigestMethod digestMethod, List transforms, String type, String id, byte[] digestValue)
          Creates a Reference with the specified parameters
 RetrievalMethod newRetrievalMethod(Transforms transforms, String type, String uri)
          Creates a RetrievalMethod with the specified parameters
 RSAKeyValue newRSAKeyValue(byte[] modulas, byte[] exponent)
          Creates a RSAKeyValue with the specified parameters
 SignatureMethod newSignatureMethod(String algorithm, SignatureMethodParameterSpec signatureMethodParameterSpec)
          Creates a SignatureMethod with the specified parameters
 SignatureProperties newSignatureProperties(List list, String string)
          Creates a SignatureProperties with the specified parameters
 SignatureProperty newSignatureProperty(List list, String string, String string0)
          Creates a SignatureProperty with the specified parameters
 SignedInfo newSignedInfo(CanonicalizationMethod canonicalizationMethod, SignatureMethod signatureMethod, List references)
          Creates a SignedInfo with the specified parameters
 SignedInfo newSignedInfo(CanonicalizationMethod canonicalizationMethod, SignatureMethod signatureMethod, List references, String id)
          Creates a SignedInfo with the specified parameters
 SPKIData newSPKIData(List spkiSexpAndAny)
          Creates a SPKIData with the specified parameters
 Transform newTransform(String algorithm, TransformParameterSpec transformParameterSpec)
          Creates a Transform with the specified parameters
 Transform newTransform(String algorithm, XMLStructure xMLStructure)
          Creates a Transform with the specified parameters
 X509Data newX509Data(List content)
          Creates a X509Data with the specified parameters
 X509IssuerSerial newX509IssuerSerial(String issuer, BigInteger serialno)
          Creates a X509IssuerSerial with the specified parameters
 XMLObject newXMLObject(List content, String id, String mime, String encoding)
          Creates a XMLObject with the specified parameters
 XMLSignature newXMLSignature(SignedInfo signedInfo, KeyInfo keyInfo)
          Creates an XMLSignature and initializes it with the contents of the specified SignedInfo and KeyInfo objects.
 XMLSignature newXMLSignature(SignedInfo signedInfo, KeyInfo keyInfo, List objects, String id, String type)
          Creates an XMLSignature and initializes it with the specified parameters.
 XMLSignature unmarshalXMLSignature(XMLStructure xMLStructure)
           
 XMLSignature unmarshalXMLSignature(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 XMLSignature newXMLSignature(SignedInfo signedInfo,
                                    KeyInfo keyInfo)
Creates an XMLSignature and initializes it with the contents of the specified SignedInfo and KeyInfo objects.

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

newXMLSignature

public XMLSignature newXMLSignature(SignedInfo signedInfo,
                                    KeyInfo keyInfo,
                                    List objects,
                                    String id,
                                    String type)
Creates an XMLSignature and initializes it with the specified parameters.

Specified by:
newXMLSignature in class 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 Reference newReference(String uri,
                              DigestMethod digestMethod)
Creates a Reference with the specified URI and digest method.

Specified by:
newReference in class XMLSignatureFactory
Parameters:
uri -
digestMethod -
Returns:
Reference

newReference

public Reference newReference(String uri,
                              DigestMethod digestMethod,
                              List transforms,
                              String type,
                              String id)
Creates a Reference with the specified parameters

Specified by:
newReference in class XMLSignatureFactory
Parameters:
uri -
digestMethod -
transforms -
type -
id -
Returns:
Reference

newReference

public Reference newReference(String uri,
                              DigestMethod digestMethod,
                              List transforms,
                              String type,
                              String id,
                              byte[] digestValue)
Creates a Reference with the specified parameters

Specified by:
newReference in class XMLSignatureFactory
Parameters:
uri -
digestMethod -
transforms -
type -
id -
digestValue -
Returns:
Reference

newReference

public Reference newReference(String string,
                              DigestMethod digestMethod,
                              List list,
                              Data data,
                              List list0,
                              String string0,
                              String string1)
Creates a Reference with the specified parameters

Specified by:
newReference in class XMLSignatureFactory
Parameters:
string -
digestMethod -
list -
data -
list0 -
string0 -
string1 -
Returns:
Reference

newSignedInfo

public SignedInfo newSignedInfo(CanonicalizationMethod canonicalizationMethod,
                                SignatureMethod signatureMethod,
                                List references)
Creates a SignedInfo with the specified parameters

Specified by:
newSignedInfo in class XMLSignatureFactory
Parameters:
canonicalizationMethod -
signatureMethod -
references -
Returns:
SignedInfo

newSignedInfo

public SignedInfo newSignedInfo(CanonicalizationMethod canonicalizationMethod,
                                SignatureMethod signatureMethod,
                                List references,
                                String id)
Creates a SignedInfo with the specified parameters

Specified by:
newSignedInfo in class XMLSignatureFactory
Parameters:
canonicalizationMethod -
signatureMethod -
references -
id -
Returns:
SignedInfo

newXMLObject

public XMLObject newXMLObject(List content,
                              String id,
                              String mime,
                              String encoding)
Creates a XMLObject with the specified parameters

Specified by:
newXMLObject in class XMLSignatureFactory
Parameters:
content -
id -
mime -
encoding -
Returns:
XMLObject

newManifest

public Manifest newManifest(List list)
Creates a Manifest with the specified parameters

Specified by:
newManifest in class XMLSignatureFactory
Parameters:
list -
Returns:
Manifest

newManifest

public Manifest newManifest(List list,
                            String string)
Creates a Manifest with the specified parameters

Specified by:
newManifest in class XMLSignatureFactory
Parameters:
list -
string -
Returns:
Manifest

newSignatureProperty

public SignatureProperty newSignatureProperty(List list,
                                              String string,
                                              String string0)
Creates a SignatureProperty with the specified parameters

Specified by:
newSignatureProperty in class XMLSignatureFactory
Parameters:
list -
string -
string0 -
Returns:
SignatureProperty

newSignatureProperties

public SignatureProperties newSignatureProperties(List list,
                                                  String string)
Creates a SignatureProperties with the specified parameters

Specified by:
newSignatureProperties in class XMLSignatureFactory
Parameters:
list -
string -
Returns:
SignatureProperties

newDigestMethod

public DigestMethod newDigestMethod(String algorithm,
                                    DigestMethodParameterSpec digestMethodParameterSpec)
                             throws NoSuchAlgorithmException,
                                    InvalidAlgorithmParameterException
Creates a DigestMethod with the specified parameters

Specified by:
newDigestMethod in class XMLSignatureFactory
Parameters:
algorithm -
digestMethodParameterSpec -
Returns:
DigestMethod
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newSignatureMethod

public SignatureMethod newSignatureMethod(String algorithm,
                                          SignatureMethodParameterSpec signatureMethodParameterSpec)
                                   throws NoSuchAlgorithmException,
                                          InvalidAlgorithmParameterException
Creates a SignatureMethod with the specified parameters

Specified by:
newSignatureMethod in class XMLSignatureFactory
Parameters:
algorithm -
signatureMethodParameterSpec -
Returns:
SignatureMethod
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newTransform

public Transform newTransform(String algorithm,
                              TransformParameterSpec transformParameterSpec)
                       throws NoSuchAlgorithmException,
                              InvalidAlgorithmParameterException
Creates a Transform with the specified parameters

Specified by:
newTransform in class XMLSignatureFactory
Parameters:
algorithm -
transformParameterSpec -
Returns:
Transforms
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newTransform

public Transform newTransform(String algorithm,
                              XMLStructure xMLStructure)
                       throws NoSuchAlgorithmException,
                              InvalidAlgorithmParameterException
Creates a Transform with the specified parameters

Specified by:
newTransform in class XMLSignatureFactory
Parameters:
algorithm -
xMLStructure -
Returns:
Transform
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newCanonicalizationMethod

public CanonicalizationMethod newCanonicalizationMethod(String algorithm,
                                                        C14NMethodParameterSpec c14NMethodParameterSpec)
                                                 throws NoSuchAlgorithmException,
                                                        InvalidAlgorithmParameterException
Creates a CanonicalizationMethod with the specified parameters

Specified by:
newCanonicalizationMethod in class XMLSignatureFactory
Parameters:
algorithm -
c14NMethodParameterSpec -
Returns:
CanonicalizationMethod
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newCanonicalizationMethod

public CanonicalizationMethod newCanonicalizationMethod(String algorithm,
                                                        XMLStructure xMLStructure)
                                                 throws NoSuchAlgorithmException,
                                                        InvalidAlgorithmParameterException
Creates a CanonicalizationMethod with the specified parameters

Specified by:
newCanonicalizationMethod in class XMLSignatureFactory
Parameters:
algorithm -
xMLStructure -
Returns:
CanonicalizationMethod
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newKeyInfo

public KeyInfo newKeyInfo(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(String id,
                          List content)
Creates a KeyInfo with the specified parameters

Parameters:
id -
content -
Returns:
KeyInfo

newKeyName

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

Parameters:
name -
Returns:
KeyName

newKeyValue

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

Parameters:
content -
Returns:
KeyValue

newPGPData

public PGPData newPGPData(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,
                                          String type,
                                          String uri)
Creates a RetrievalMethod with the specified parameters

Parameters:
transforms -
type -
uri -
Returns:
RetrievalMethod

newSPKIData

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

Parameters:
spkiSexpAndAny -
Returns:
SPKIData

newX509Data

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

Parameters:
content -
Returns:
X509Data

newX509IssuerSerial

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

Parameters:
issuer -
serialno -
Returns:
X509IssuerSerial

unmarshalXMLSignature

public XMLSignature unmarshalXMLSignature(XMLValidateContext xMLValidateContext)
                                   throws MarshalException
Specified by:
unmarshalXMLSignature in class XMLSignatureFactory
Parameters:
xMLValidateContext -
Returns:
Throws:
MarshalException

unmarshalXMLSignature

public XMLSignature unmarshalXMLSignature(XMLStructure xMLStructure)
                                   throws MarshalException
Specified by:
unmarshalXMLSignature in class XMLSignatureFactory
Parameters:
xMLStructure -
Returns:
Throws:
MarshalException

isFeatureSupported

public boolean isFeatureSupported(String string)
Specified by:
isFeatureSupported in class XMLSignatureFactory
Parameters:
string -
Returns:

getURIDereferencer

public URIDereferencer getURIDereferencer()
Specified by:
getURIDereferencer in class XMLSignatureFactory
Returns:


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