javax.xml.crypto.enc

Interface EncryptionMethod

All Superinterfaces:
AlgorithmMethod, XMLStructure

  1. public interface EncryptionMethod
  2. extends AlgorithmMethod, XMLStructure
A representation of the XML 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:
XMLEncryptionFactory.newEncryptionMethod(String, Integer, EncryptionMethodParameterSpec)

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
AES128_CBC
AES-128 Block Encryption Algorithm URI.
  1. static
  2. java.lang.String
AES192_CBC
AES-192 Block Encryption Algorithm URI.
  1. static
  2. java.lang.String
AES256_CBC
AES-256 Block Encryption Algorithm URI.
  1. static
  2. java.lang.String
KW_AES128
AES-128 Symmetric Key Wrap Algorithm URI.
  1. static
  2. java.lang.String
KW_AES192
AES-192 Symmetric Key Wrap Algorithm URI.
  1. static
  2. java.lang.String
KW_AES256
AES-256 Symmetric Key Wrap Algorithm URI.
  1. static
  2. java.lang.String
KW_TRIPLEDES
TRIPLEDES Symmetric Key Wrap Algorithm URI.
  1. static
  2. java.lang.String
RSA_1_5
RSA-PKCS1 Version 1.5 Key Transport Algorithm URI.
  1. static
  2. java.lang.String
RSA_OAEP_MGF1P
RSA-PKCS1 OAEP Key Transport Algorithm URI.
  1. static
  2. java.lang.String
TRIPLEDES_CBC
TRIPLEDES Block Encryption Algorithm URI.

Method Summary

Modifier and Type Method and Description
  1. java.lang.Integer
getKeySize()
Returns the size of the key to be used with this EncryptionMethod.
  1. java.security.spec.AlgorithmParameterSpec
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

  1. static final java.lang.String TRIPLEDES_CBC
TRIPLEDES Block Encryption Algorithm URI.
See Also:

AES128_CBC

  1. static final java.lang.String AES128_CBC
AES-128 Block Encryption Algorithm URI.
See Also:

AES192_CBC

  1. static final java.lang.String AES192_CBC
AES-192 Block Encryption Algorithm URI.
See Also:

AES256_CBC

  1. static final java.lang.String AES256_CBC
AES-256 Block Encryption Algorithm URI.
See Also:

RSA_1_5

  1. static final java.lang.String RSA_1_5
RSA-PKCS1 Version 1.5 Key Transport Algorithm URI.
See Also:

RSA_OAEP_MGF1P

  1. static final java.lang.String RSA_OAEP_MGF1P
RSA-PKCS1 OAEP Key Transport Algorithm URI.
See Also:

KW_TRIPLEDES

  1. static final java.lang.String KW_TRIPLEDES
TRIPLEDES Symmetric Key Wrap Algorithm URI.
See Also:

KW_AES128

  1. static final java.lang.String KW_AES128
AES-128 Symmetric Key Wrap Algorithm URI.
See Also:

KW_AES192

  1. static final java.lang.String KW_AES192
AES-192 Symmetric Key Wrap Algorithm URI.
See Also:

KW_AES256

  1. static final java.lang.String KW_AES256
AES-256 Symmetric Key Wrap Algorithm URI.
See Also:

Method Detail

getKeySize

  1. 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

  1. java.security.spec.AlgorithmParameterSpec getParameterSpec( )
Returns algorithm-specific parameters for this EncryptionMethod. The returned parameters can be typecast to a EncryptionMethodParameterSpec object.
Specified by:
Returns:
the algorithm-specific input parameters of this EncryptionMethod. (may be null if not specified)