javax.xml.crypto.enc
Interface EncryptionMethod
All Superinterfaces:
- public interface EncryptionMethod
- extends AlgorithmMethod, XMLStructure
EncryptionMethod
element as defined in the
W3C Recommendation for XML-Encryption Syntax and Processing. The XML
Schema Definition is defined as:
<complexType name="EncryptionMethodType" mixed="true"> <sequence> <element name="KeySize" minOccurs="0" type="xenc:KeySizeType"/> <element name="OAEPparams" minOccurs="0" type="base64Binary"/> <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute name="Algorithm" type="anyURI" use="required"/> </complexType>
See Also:
Field Summary
Modifier and Type | Field and Description |
---|---|
|
AES128_CBC
AES-128 Block Encryption Algorithm URI.
|
|
AES192_CBC
AES-192 Block Encryption Algorithm URI.
|
|
AES256_CBC
AES-256 Block Encryption Algorithm URI.
|
|
KW_AES128
AES-128 Symmetric Key Wrap Algorithm URI.
|
|
KW_AES192
AES-192 Symmetric Key Wrap Algorithm URI.
|
|
KW_AES256
AES-256 Symmetric Key Wrap Algorithm URI.
|
|
KW_TRIPLEDES
TRIPLEDES Symmetric Key Wrap Algorithm URI.
|
|
RSA_1_5
RSA-PKCS1 Version 1.5 Key Transport Algorithm URI.
|
|
RSA_OAEP_MGF1P
RSA-PKCS1 OAEP Key Transport Algorithm URI.
|
|
TRIPLEDES_CBC
TRIPLEDES Block Encryption Algorithm URI.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getKeySize()
Returns the size of the key to be used with this
EncryptionMethod .
|
|
getParameterSpec()
Returns algorithm-specific parameters for this
EncryptionMethod .
|
Methods inherited from interface javax.xml.crypto.AlgorithmMethod |
---|
getAlgorithm |
Methods inherited from interface javax.xml.crypto.XMLStructure |
---|
isFeatureSupported |
Field Detail
TRIPLEDES_CBC
- static final java.lang.String TRIPLEDES_CBC
TRIPLEDES Block Encryption Algorithm URI.
See Also:
AES128_CBC
- static final java.lang.String AES128_CBC
AES-128 Block Encryption Algorithm URI.
See Also:
AES192_CBC
- static final java.lang.String AES192_CBC
AES-192 Block Encryption Algorithm URI.
See Also:
AES256_CBC
- static final java.lang.String AES256_CBC
AES-256 Block Encryption Algorithm URI.
See Also:
RSA_1_5
- static final java.lang.String RSA_1_5
RSA-PKCS1 Version 1.5 Key Transport Algorithm URI.
See Also:
RSA_OAEP_MGF1P
- static final java.lang.String RSA_OAEP_MGF1P
RSA-PKCS1 OAEP Key Transport Algorithm URI.
See Also:
KW_TRIPLEDES
- static final java.lang.String KW_TRIPLEDES
TRIPLEDES Symmetric Key Wrap Algorithm URI.
See Also:
KW_AES128
- static final java.lang.String KW_AES128
AES-128 Symmetric Key Wrap Algorithm URI.
See Also:
KW_AES192
- static final java.lang.String KW_AES192
AES-192 Symmetric Key Wrap Algorithm URI.
See Also:
KW_AES256
- static final java.lang.String KW_AES256
AES-256 Symmetric Key Wrap Algorithm URI.
See Also:
Method Detail
getKeySize
- java.lang.Integer getKeySize()
Returns the size of the key to be used with this
EncryptionMethod
.
Returns:
the key size, or
null
if not specified getParameterSpec
- java.security.spec.AlgorithmParameterSpec getParameterSpec( )
Returns algorithm-specific parameters for this
EncryptionMethod
.
The returned parameters can be typecast to a
EncryptionMethodParameterSpec
object.
Specified by:
getParameterSpec
in interface AlgorithmMethod
Returns:
the algorithm-specific input parameters of this
EncryptionMethod
. (may be null
if not specified)