Class JAXBSignatureFactory
java.lang.Object
javax.xml.crypto.dsig.XMLSignatureFactory
com.sun.xml.ws.security.opt.crypto.jaxb.JAXBSignatureFactory
- Author:
- Abhijit Das
-
Method Summary
Modifier and TypeMethodDescriptionjavax.xml.bind.JAXBContextbooleanisFeatureSupported(String string) newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec c14NMethodParameterSpec) Creates a CanonicalizationMethod with the specified parametersnewCanonicalizationMethod(String algorithm, XMLStructure xMLStructure) Creates a CanonicalizationMethod with the specified parametersnewDigestMethod(String algorithm, DigestMethodParameterSpec digestMethodParameterSpec) Creates a DigestMethod with the specified parametersnewDSAKeyValue(byte[] p, byte[] q, byte[] g, byte[] y, byte[] j, byte[] seed, byte[] pgenCounter) Creates a DSAKeyValue with the specified parametersstatic JAXBSignatureFactorynewKeyInfo(String id, List content) Creates a KeyInfo with the specified parametersnewKeyInfo(List content) newKeyName(String name) Creates a KeyName with the specified parametersnewKeyValue(List content) Creates a KeyValue with the specified parametersnewManifest(List list) Creates a Manifest with the specified parametersnewManifest(List list, String string) Creates a Manifest with the specified parametersnewPGPData(List content) Creates a PGPData with the specified parametersnewReference(String uri, DigestMethod digestMethod) Creates a Reference with the specified URI and digest method.newReference(String uri, DigestMethod digestMethod, List transforms, String type, String id) Creates a Reference with the specified parametersnewReference(String uri, DigestMethod digestMethod, List transforms, String type, String id, byte[] digestValue) Creates a Reference with the specified parametersnewReference(String string, DigestMethod digestMethod, List list, Data data, List list0, String string0, String string1) Creates a Reference with the specified parametersnewRetrievalMethod(Transforms transforms, String type, String uri) Creates a RetrievalMethod with the specified parametersnewRSAKeyValue(byte[] modulas, byte[] exponent) Creates a RSAKeyValue with the specified parametersnewSignatureMethod(String algorithm, SignatureMethodParameterSpec signatureMethodParameterSpec) Creates a SignatureMethod with the specified parametersnewSignatureProperties(List list, String string) Creates a SignatureProperties with the specified parametersnewSignatureProperty(List list, String string, String string0) Creates a SignatureProperty with the specified parametersnewSignedInfo(CanonicalizationMethod canonicalizationMethod, SignatureMethod signatureMethod, List references) Creates a SignedInfo with the specified parametersnewSignedInfo(CanonicalizationMethod canonicalizationMethod, SignatureMethod signatureMethod, List references, String id) Creates a SignedInfo with the specified parametersnewSPKIData(List spkiSexpAndAny) Creates a SPKIData with the specified parametersnewTransform(String algorithm, TransformParameterSpec transformParameterSpec) Creates a Transform with the specified parametersnewTransform(String algorithm, XMLStructure xMLStructure) Creates a Transform with the specified parametersnewX509Data(List content) Creates a X509Data with the specified parametersnewX509IssuerSerial(String issuer, BigInteger serialno) Creates a X509IssuerSerial with the specified parametersnewXMLObject(List content, String id, String mime, String encoding) Creates a XMLObject with the specified parametersnewXMLSignature(SignedInfo signedInfo, KeyInfo keyInfo) Creates an XMLSignature and initializes it with the contents of the specified SignedInfo and KeyInfo objects.newXMLSignature(SignedInfo signedInfo, KeyInfo keyInfo, List objects, String id, String type) Creates an XMLSignature and initializes it with the specified parameters.unmarshalXMLSignature(XMLValidateContext xMLValidateContext) unmarshalXMLSignature(XMLStructure xMLStructure) Methods inherited from class javax.xml.crypto.dsig.XMLSignatureFactory
getInstance, getInstance, getInstance, getInstance, getKeyInfoFactory, getMechanismType, getProvider
-
Method Details
-
newInstance
-
getJAXBContext
public javax.xml.bind.JAXBContext getJAXBContext() throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
newXMLSignature
Creates an XMLSignature and initializes it with the contents of the specified SignedInfo and KeyInfo objects.- Specified by:
newXMLSignaturein classXMLSignatureFactory- Parameters:
signedInfo- - signed infokeyInfo- - 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:
newXMLSignaturein classXMLSignatureFactory- Parameters:
signedInfo- - the Signed InfokeyInfo- - 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
Creates a Reference with the specified URI and digest method.- Specified by:
newReferencein classXMLSignatureFactory- 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:
newReferencein classXMLSignatureFactory- 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:
newReferencein classXMLSignatureFactory- 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:
newReferencein classXMLSignatureFactory- 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:
newSignedInfoin classXMLSignatureFactory- 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:
newSignedInfoin classXMLSignatureFactory- Parameters:
canonicalizationMethod-signatureMethod-references-id-- Returns:
- SignedInfo
-
newXMLObject
Creates a XMLObject with the specified parameters- Specified by:
newXMLObjectin classXMLSignatureFactory- Parameters:
content-id-mime-encoding-- Returns:
- XMLObject
-
newManifest
Creates a Manifest with the specified parameters- Specified by:
newManifestin classXMLSignatureFactory- Parameters:
list-- Returns:
- Manifest
-
newManifest
Creates a Manifest with the specified parameters- Specified by:
newManifestin classXMLSignatureFactory- Parameters:
list-string-- Returns:
- Manifest
-
newSignatureProperty
Creates a SignatureProperty with the specified parameters- Specified by:
newSignaturePropertyin classXMLSignatureFactory- Parameters:
list-string-string0-- Returns:
- SignatureProperty
-
newSignatureProperties
Creates a SignatureProperties with the specified parameters- Specified by:
newSignaturePropertiesin classXMLSignatureFactory- 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:
newDigestMethodin classXMLSignatureFactory- Parameters:
algorithm-digestMethodParameterSpec-- Returns:
- DigestMethod
- Throws:
NoSuchAlgorithmExceptionInvalidAlgorithmParameterException
-
newSignatureMethod
public SignatureMethod newSignatureMethod(String algorithm, SignatureMethodParameterSpec signatureMethodParameterSpec) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException Creates a SignatureMethod with the specified parameters- Specified by:
newSignatureMethodin classXMLSignatureFactory- Parameters:
algorithm-signatureMethodParameterSpec-- Returns:
- SignatureMethod
- Throws:
NoSuchAlgorithmExceptionInvalidAlgorithmParameterException
-
newTransform
public Transform newTransform(String algorithm, TransformParameterSpec transformParameterSpec) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException Creates a Transform with the specified parameters- Specified by:
newTransformin classXMLSignatureFactory- Parameters:
algorithm-transformParameterSpec-- Returns:
- Transforms
- Throws:
NoSuchAlgorithmExceptionInvalidAlgorithmParameterException
-
newTransform
public Transform newTransform(String algorithm, XMLStructure xMLStructure) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException Creates a Transform with the specified parameters- Specified by:
newTransformin classXMLSignatureFactory- Parameters:
algorithm-xMLStructure-- Returns:
- Transform
- Throws:
NoSuchAlgorithmExceptionInvalidAlgorithmParameterException
-
newCanonicalizationMethod
public CanonicalizationMethod newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec c14NMethodParameterSpec) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException Creates a CanonicalizationMethod with the specified parameters- Specified by:
newCanonicalizationMethodin classXMLSignatureFactory- Parameters:
algorithm-c14NMethodParameterSpec-- Returns:
- CanonicalizationMethod
- Throws:
NoSuchAlgorithmExceptionInvalidAlgorithmParameterException
-
newCanonicalizationMethod
public CanonicalizationMethod newCanonicalizationMethod(String algorithm, XMLStructure xMLStructure) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException Creates a CanonicalizationMethod with the specified parameters- Specified by:
newCanonicalizationMethodin classXMLSignatureFactory- Parameters:
algorithm-xMLStructure-- Returns:
- CanonicalizationMethod
- Throws:
NoSuchAlgorithmExceptionInvalidAlgorithmParameterException
-
newKeyInfo
-
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
Creates a KeyInfo with the specified parameters- Parameters:
id-content-- Returns:
- KeyInfo
-
newKeyName
Creates a KeyName with the specified parameters- Parameters:
name-- Returns:
- KeyName
-
newKeyValue
Creates a KeyValue with the specified parameters- Parameters:
content-- Returns:
- KeyValue
-
newPGPData
Creates a PGPData with the specified parameters- Parameters:
content-- Returns:
- PGPData
-
newRSAKeyValue
Creates a RSAKeyValue with the specified parameters- Parameters:
modulas-exponent-- Returns:
- RSAKeyValue
-
newRetrievalMethod
Creates a RetrievalMethod with the specified parameters- Parameters:
transforms-type-uri-- Returns:
- RetrievalMethod
-
newSPKIData
Creates a SPKIData with the specified parameters- Parameters:
spkiSexpAndAny-- Returns:
- SPKIData
-
newX509Data
Creates a X509Data with the specified parameters- Parameters:
content-- Returns:
- X509Data
-
newX509IssuerSerial
Creates a X509IssuerSerial with the specified parameters- Parameters:
issuer-serialno-- Returns:
- X509IssuerSerial
-
unmarshalXMLSignature
public XMLSignature unmarshalXMLSignature(XMLValidateContext xMLValidateContext) throws MarshalException - Specified by:
unmarshalXMLSignaturein classXMLSignatureFactory- Parameters:
xMLValidateContext-- Returns:
- Throws:
MarshalException
-
unmarshalXMLSignature
- Specified by:
unmarshalXMLSignaturein classXMLSignatureFactory- Parameters:
xMLStructure-- Returns:
- Throws:
MarshalException
-
isFeatureSupported
- Specified by:
isFeatureSupportedin classXMLSignatureFactory- Parameters:
string-- Returns:
-
getURIDereferencer
- Specified by:
getURIDereferencerin classXMLSignatureFactory- Returns:
-