javax.xml.crypto.dsig
18 classes of the module java.xml.crypto.
Load them with:
using {
"javax.xml.crypto.dsig"
}
CanonicalizationMethod#
interface · javax.xml.crypto.dsig.CanonicalizationMethod
Extends: Transform
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
INCLUSIVE | String | constant · static | o.INCLUSIVE |
INCLUSIVE_WITH_COMMENTS | String | constant · static | o.INCLUSIVE_WITH_COMMENTS |
EXCLUSIVE | String | constant · static | o.EXCLUSIVE |
EXCLUSIVE_WITH_COMMENTS | String | constant · static | o.EXCLUSIVE_WITH_COMMENTS |
INCLUSIVE_11 | String | constant · static | o.INCLUSIVE_11 |
INCLUSIVE_11_WITH_COMMENTS | String | constant · static | o.INCLUSIVE_11_WITH_COMMENTS |
BASE64 | String | constant · static | o.BASE64 |
ENVELOPED | String | constant · static | o.ENVELOPED |
XPATH | String | constant · static | o.XPATH |
XPATH2 | String | constant · static | o.XPATH2 |
XSLT | String | constant · static | o.XSLT |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAlgorithm | getAlgorithm() | String getAlgorithm() |
getParameterSpec | getParameterSpec() | AlgorithmParameterSpec getParameterSpec() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
transform | transform([data,context])transform([ :data = v, :context = v ])transform([data,context,os])transform([ :data = v, :context = v, :os = v ]) | Data transform(Data data, XMLCryptoContext context)Data transform(Data data, XMLCryptoContext context, OutputStream os) |
DigestMethod#
interface · javax.xml.crypto.dsig.DigestMethod
Extends: XMLStructure, AlgorithmMethod
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
SHA1 | String | constant · static | o.SHA1 |
SHA224 | String | constant · static | o.SHA224 |
SHA256 | String | constant · static | o.SHA256 |
SHA384 | String | constant · static | o.SHA384 |
SHA512 | String | constant · static | o.SHA512 |
RIPEMD160 | String | constant · static | o.RIPEMD160 |
SHA3_224 | String | constant · static | o.SHA3_224 |
SHA3_256 | String | constant · static | o.SHA3_256 |
SHA3_384 | String | constant · static | o.SHA3_384 |
SHA3_512 | String | constant · static | o.SHA3_512 |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAlgorithm | getAlgorithm() | String getAlgorithm() |
getParameterSpec | getParameterSpec() | AlgorithmParameterSpec getParameterSpec() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
DsigManifest#
interface · javax.xml.crypto.dsig.Manifest
Extends: XMLStructure
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TYPE | String | constant · static | o.TYPE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getId | getId() | String getId() |
getReferences | getReferences() | List getReferences() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
DsigReference#
interface · javax.xml.crypto.dsig.Reference
Extends: URIReference, XMLStructure
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getCalculatedDigestValue | getCalculatedDigestValue() | byte[] getCalculatedDigestValue() |
getDereferencedData | getDereferencedData() | Data getDereferencedData() |
getDigestInputStream | getDigestInputStream() | InputStream getDigestInputStream() |
getDigestMethod | getDigestMethod() | DigestMethod getDigestMethod() |
getDigestValue | getDigestValue() | byte[] getDigestValue() |
getId | getId() | String getId() |
getTransforms | getTransforms() | List getTransforms() |
getType | getType() | String getType() |
getURI | getURI() | String getURI() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
validate | validate(validateContext) | boolean validate(XMLValidateContext validateContext) |
SignatureMethod#
interface · javax.xml.crypto.dsig.SignatureMethod
Extends: XMLStructure, AlgorithmMethod
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DSA_SHA1 | String | constant · static | o.DSA_SHA1 |
DSA_SHA256 | String | constant · static | o.DSA_SHA256 |
RSA_SHA1 | String | constant · static | o.RSA_SHA1 |
RSA_SHA224 | String | constant · static | o.RSA_SHA224 |
RSA_SHA256 | String | constant · static | o.RSA_SHA256 |
RSA_SHA384 | String | constant · static | o.RSA_SHA384 |
RSA_SHA512 | String | constant · static | o.RSA_SHA512 |
SHA1_RSA_MGF1 | String | constant · static | o.SHA1_RSA_MGF1 |
SHA224_RSA_MGF1 | String | constant · static | o.SHA224_RSA_MGF1 |
SHA256_RSA_MGF1 | String | constant · static | o.SHA256_RSA_MGF1 |
SHA384_RSA_MGF1 | String | constant · static | o.SHA384_RSA_MGF1 |
SHA512_RSA_MGF1 | String | constant · static | o.SHA512_RSA_MGF1 |
ECDSA_SHA1 | String | constant · static | o.ECDSA_SHA1 |
ECDSA_SHA224 | String | constant · static | o.ECDSA_SHA224 |
ECDSA_SHA256 | String | constant · static | o.ECDSA_SHA256 |
ECDSA_SHA384 | String | constant · static | o.ECDSA_SHA384 |
ECDSA_SHA512 | String | constant · static | o.ECDSA_SHA512 |
HMAC_SHA1 | String | constant · static | o.HMAC_SHA1 |
HMAC_SHA224 | String | constant · static | o.HMAC_SHA224 |
HMAC_SHA256 | String | constant · static | o.HMAC_SHA256 |
HMAC_SHA384 | String | constant · static | o.HMAC_SHA384 |
HMAC_SHA512 | String | constant · static | o.HMAC_SHA512 |
RSA_PSS | String | constant · static | o.RSA_PSS |
ED25519 | String | constant · static | o.ED25519 |
ED448 | String | constant · static | o.ED448 |
SHA3_224_RSA_MGF1 | String | constant · static | o.SHA3_224_RSA_MGF1 |
SHA3_256_RSA_MGF1 | String | constant · static | o.SHA3_256_RSA_MGF1 |
SHA3_384_RSA_MGF1 | String | constant · static | o.SHA3_384_RSA_MGF1 |
SHA3_512_RSA_MGF1 | String | constant · static | o.SHA3_512_RSA_MGF1 |
ECDSA_SHA3_224 | String | constant · static | o.ECDSA_SHA3_224 |
ECDSA_SHA3_256 | String | constant · static | o.ECDSA_SHA3_256 |
ECDSA_SHA3_384 | String | constant · static | o.ECDSA_SHA3_384 |
ECDSA_SHA3_512 | String | constant · static | o.ECDSA_SHA3_512 |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAlgorithm | getAlgorithm() | String getAlgorithm() |
getParameterSpec | getParameterSpec() | AlgorithmParameterSpec getParameterSpec() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
SignatureProperties#
interface · javax.xml.crypto.dsig.SignatureProperties
Extends: XMLStructure
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TYPE | String | constant · static | o.TYPE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getId | getId() | String getId() |
getProperties | getProperties() | List getProperties() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
SignatureProperty#
interface · javax.xml.crypto.dsig.SignatureProperty
Extends: XMLStructure
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getContent | getContent() | List getContent() |
getId | getId() | String getId() |
getTarget | getTarget() | String getTarget() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
SignedInfo#
interface · javax.xml.crypto.dsig.SignedInfo
Extends: XMLStructure
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getCanonicalizationMethod | getCanonicalizationMethod() | CanonicalizationMethod getCanonicalizationMethod() |
getCanonicalizedData | getCanonicalizedData() | InputStream getCanonicalizedData() |
getId | getId() | String getId() |
getReferences | getReferences() | List getReferences() |
getSignatureMethod | getSignatureMethod() | SignatureMethod getSignatureMethod() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
Transform#
interface · javax.xml.crypto.dsig.Transform
Extends: XMLStructure, AlgorithmMethod
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
BASE64 | String | constant · static | o.BASE64 |
ENVELOPED | String | constant · static | o.ENVELOPED |
XPATH | String | constant · static | o.XPATH |
XPATH2 | String | constant · static | o.XPATH2 |
XSLT | String | constant · static | o.XSLT |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAlgorithm | getAlgorithm() | String getAlgorithm() |
getParameterSpec | getParameterSpec() | AlgorithmParameterSpec getParameterSpec() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
transform | transform([data,context])transform([ :data = v, :context = v ])transform([data,context,os])transform([ :data = v, :context = v, :os = v ]) | Data transform(Data data, XMLCryptoContext context)Data transform(Data data, XMLCryptoContext context, OutputStream os) |
TransformException#
class · extends Exception · javax.xml.crypto.dsig.TransformException
Constructors
new TransformException() |
new TransformException(Throwable cause) |
new TransformException(String message) |
new TransformException(String message, Throwable cause) |
Ring: new TransformException(args) uses the constructor with the fewest parameters (at least one); new TransformException makes the object with the constructor without parameters; the others: (new TransformException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Exception are inherited.
TransformService#
abstract · extends Object · javax.xml.crypto.dsig.TransformService
Implements: Transform
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
BASE64 | String | constant · static | o.BASE64 |
ENVELOPED | String | constant · static | o.ENVELOPED |
XPATH | String | constant · static | o.XPATH |
XPATH2 | String | constant · static | o.XPATH2 |
XSLT | String | constant · static | o.XSLT |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@init | @init(params)@init([parent,context])@init([ :parent = v, :context = v ]) | void init(TransformParameterSpec params)void init(XMLStructure parent, XMLCryptoContext context) |
getAlgorithm | getAlgorithm() | String getAlgorithm() |
getInstance | getInstance([algorithm,mechanismType])getInstance([ :algorithm = v, :mechanismType = v ])getInstance([algorithm,mechanismType,provider])getInstance([ :algorithm = v, :mechanismType = v, :provider = v ]) | static TransformService getInstance(String algorithm, String mechanismType)static TransformService getInstance(String algorithm, String mechanismType, String provider)static TransformService getInstance(String algorithm, String mechanismType, Provider provider) |
getMechanismType | getMechanismType() | String getMechanismType() |
getParameterSpec | getParameterSpec() | AlgorithmParameterSpec getParameterSpec() |
getProvider | getProvider() | Provider getProvider() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
marshalParams | marshalParams(parent,context) | void marshalParams(XMLStructure parent, XMLCryptoContext context) |
transform | transform([data,context])transform([ :data = v, :context = v ])transform([data,context,os])transform([ :data = v, :context = v, :os = v ]) | Data transform(Data data, XMLCryptoContext context)Data transform(Data data, XMLCryptoContext context, OutputStream os) |
The methods and fields of Object are inherited.
XMLObject#
interface · javax.xml.crypto.dsig.XMLObject
Extends: XMLStructure
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TYPE | String | constant · static | o.TYPE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getContent | getContent() | List getContent() |
getEncoding | getEncoding() | String getEncoding() |
getId | getId() | String getId() |
getMimeType | getMimeType() | String getMimeType() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
XMLSignature#
interface · javax.xml.crypto.dsig.XMLSignature
Extends: XMLStructure
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
XMLNS | String | constant · static | o.XMLNS |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getId | getId() | String getId() |
getKeyInfo | getKeyInfo() | KeyInfo getKeyInfo() |
getKeySelectorResult | getKeySelectorResult() | KeySelectorResult getKeySelectorResult() |
getObjects | getObjects() | List getObjects() |
getSignatureValue | getSignatureValue() | SignatureValue getSignatureValue() |
getSignedInfo | getSignedInfo() | SignedInfo getSignedInfo() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
sign | sign(signContext) | void sign(XMLSignContext signContext) |
validate | validate(validateContext) | boolean validate(XMLValidateContext validateContext) |
XMLSignatureException#
class · extends Exception · javax.xml.crypto.dsig.XMLSignatureException
Constructors
new XMLSignatureException() |
new XMLSignatureException(Throwable cause) |
new XMLSignatureException(String message) |
new XMLSignatureException(String message, Throwable cause) |
Ring: new XMLSignatureException(args) uses the constructor with the fewest parameters (at least one); new XMLSignatureException makes the object with the constructor without parameters; the others: (new XMLSignatureException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Exception are inherited.
XMLSignatureFactory#
abstract · extends Object · javax.xml.crypto.dsig.XMLSignatureFactory
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@getInstance | @getInstance(mechanismType)@getInstance([mechanismType,provider])@getInstance([ :mechanismType = v, :provider = v ]) | static XMLSignatureFactory getInstance(String mechanismType)static XMLSignatureFactory getInstance(String mechanismType, String provider)static XMLSignatureFactory getInstance(String mechanismType, Provider provider) |
getInstance | getInstance() | static XMLSignatureFactory getInstance() |
getKeyInfoFactory | getKeyInfoFactory() | KeyInfoFactory getKeyInfoFactory() |
getMechanismType | getMechanismType() | String getMechanismType() |
getProvider | getProvider() | Provider getProvider() |
getURIDereferencer | getURIDereferencer() | URIDereferencer getURIDereferencer() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
newCanonicalizationMethod | newCanonicalizationMethod(algorithm,params) | CanonicalizationMethod newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec params)CanonicalizationMethod newCanonicalizationMethod(String algorithm, XMLStructure params) |
newDigestMethod | newDigestMethod(algorithm,params) | DigestMethod newDigestMethod(String algorithm, DigestMethodParameterSpec params) |
newManifest | newManifest(references)newManifest([references,id])newManifest([ :references = v, :id = v ]) | Manifest newManifest(List references)Manifest newManifest(List references, String id) |
newReference | newReference([uri,dm])newReference([ :uri = v, :dm = v ])newReference([uri,dm,transforms,type,id])newReference([ :uri = v, :dm = v, :transforms = v, :type = v, :id = v ])newReference([uri,dm,transforms,type,id,digestValue])newReference([ :uri = v, :dm = v, :transforms = v, :type = v, :id = v, :digestValue = v ])newReference([uri,dm,appliedTransforms,result,transforms,type,id])newReference([ :uri = v, :dm = v, :appliedTransforms = v, :result = v, :transforms = v, :type = v, :id = v ]) | Reference newReference(String uri, DigestMethod dm)Reference newReference(String uri, DigestMethod dm, List transforms, String type, String id)Reference newReference(String uri, DigestMethod dm, List transforms, String type, String id, byte[] digestValue)Reference newReference(String uri, DigestMethod dm, List appliedTransforms, Data result, List transforms, String type, String id) |
newSignatureMethod | newSignatureMethod(algorithm,params) | SignatureMethod newSignatureMethod(String algorithm, SignatureMethodParameterSpec params) |
newSignatureProperties | newSignatureProperties(properties,id) | SignatureProperties newSignatureProperties(List properties, String id) |
newSignatureProperty | newSignatureProperty(content,target,id) | SignatureProperty newSignatureProperty(List content, String target, String id) |
newSignedInfo | newSignedInfo([cm,sm,references])newSignedInfo([ :cm = v, :sm = v, :references = v ])newSignedInfo([cm,sm,references,id])newSignedInfo([ :cm = v, :sm = v, :references = v, :id = v ]) | SignedInfo newSignedInfo(CanonicalizationMethod cm, SignatureMethod sm, List references)SignedInfo newSignedInfo(CanonicalizationMethod cm, SignatureMethod sm, List references, String id) |
newTransform | newTransform(algorithm,params) | Transform newTransform(String algorithm, TransformParameterSpec params)Transform newTransform(String algorithm, XMLStructure params) |
newXMLObject | newXMLObject(content,id,mimeType,encoding) | XMLObject newXMLObject(List content, String id, String mimeType, String encoding) |
newXMLSignature | newXMLSignature([si,ki])newXMLSignature([ :si = v, :ki = v ])newXMLSignature([si,ki,objects,id,signatureValueId])newXMLSignature([ :si = v, :ki = v, :objects = v, :id = v, :signatureValueId = v ]) | XMLSignature newXMLSignature(SignedInfo si, KeyInfo ki)XMLSignature newXMLSignature(SignedInfo si, KeyInfo ki, List objects, String id, String signatureValueId) |
unmarshalXMLSignature | unmarshalXMLSignature(xmlStructure) | XMLSignature unmarshalXMLSignature(XMLStructure xmlStructure)XMLSignature unmarshalXMLSignature(XMLValidateContext context) |
The methods and fields of Object are inherited.
XMLSignatureSignatureValue#
interface · javax.xml.crypto.dsig.XMLSignature$SignatureValue
Extends: XMLStructure
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getId | getId() | String getId() |
getValue | getValue() | byte[] getValue() |
isFeatureSupported | isFeatureSupported(feature) | boolean isFeatureSupported(String feature) |
validate | validate(validateContext) | boolean validate(XMLValidateContext validateContext) |
XMLSignContext#
interface · javax.xml.crypto.dsig.XMLSignContext
Extends: XMLCryptoContext
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(key) | Object get(Object key) |
@put | @put(key,value) | Object put(Object key, Object value) |
getBaseURI | getBaseURI() | String getBaseURI() |
getDefaultNamespacePrefix | getDefaultNamespacePrefix() | String getDefaultNamespacePrefix() |
getKeySelector | getKeySelector() | KeySelector getKeySelector() |
getNamespacePrefix | getNamespacePrefix(namespaceURI,defaultPrefix) | String getNamespacePrefix(String namespaceURI, String defaultPrefix) |
getProperty | getProperty(name) | Object getProperty(String name) |
getURIDereferencer | getURIDereferencer() | URIDereferencer getURIDereferencer() |
putNamespacePrefix | putNamespacePrefix(namespaceURI,prefix) | String putNamespacePrefix(String namespaceURI, String prefix) |
setBaseURI | setBaseURI(baseURI) | void setBaseURI(String baseURI) |
setDefaultNamespacePrefix | setDefaultNamespacePrefix(defaultPrefix) | void setDefaultNamespacePrefix(String defaultPrefix) |
setKeySelector | setKeySelector(ks) | void setKeySelector(KeySelector ks) |
setProperty | setProperty(name,value) | Object setProperty(String name, Object value) |
setURIDereferencer | setURIDereferencer(dereferencer) | void setURIDereferencer(URIDereferencer dereferencer) |
XMLValidateContext#
interface · javax.xml.crypto.dsig.XMLValidateContext
Extends: XMLCryptoContext
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(key) | Object get(Object key) |
@put | @put(key,value) | Object put(Object key, Object value) |
getBaseURI | getBaseURI() | String getBaseURI() |
getDefaultNamespacePrefix | getDefaultNamespacePrefix() | String getDefaultNamespacePrefix() |
getKeySelector | getKeySelector() | KeySelector getKeySelector() |
getNamespacePrefix | getNamespacePrefix(namespaceURI,defaultPrefix) | String getNamespacePrefix(String namespaceURI, String defaultPrefix) |
getProperty | getProperty(name) | Object getProperty(String name) |
getURIDereferencer | getURIDereferencer() | URIDereferencer getURIDereferencer() |
putNamespacePrefix | putNamespacePrefix(namespaceURI,prefix) | String putNamespacePrefix(String namespaceURI, String prefix) |
setBaseURI | setBaseURI(baseURI) | void setBaseURI(String baseURI) |
setDefaultNamespacePrefix | setDefaultNamespacePrefix(defaultPrefix) | void setDefaultNamespacePrefix(String defaultPrefix) |
setKeySelector | setKeySelector(ks) | void setKeySelector(KeySelector ks) |
setProperty | setProperty(name,value) | Object setProperty(String name, Object value) |
setURIDereferencer | setURIDereferencer(dereferencer) | void setURIDereferencer(URIDereferencer dereferencer) |