javax.xml.crypto.enc.keyinfo

Interface AgreementMethod

All Superinterfaces:
AlgorithmMethod, XMLStructure

  1. public interface AgreementMethod
  2. extends AlgorithmMethod, XMLStructure
Represents the AgreementMethod element. Its schema definition is as follows: <element name="AgreementMethod" type="xenc:AgreementMethodType"/> <complextype name="AgreementMethodType" mixed="true"> <sequence> <element name="KA-Nonce" minoccurs="0" type="base64Binary"/> <!-- <elementref="ds:DigestMethod" minoccurs="0"/> --> <any namespace="##other" minoccurs="0" maxoccurs="unbounded"/> <element name="OriginatorKeyInfo" minoccurs="0" type="ds:KeyInfoType"/> <element name="RecipientKeyInfo" minoccurs="0" type="ds:KeyInfoType"/> </sequence> <attribute name="Algorithm" type="anyURI" use="required"/> </complextype>

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
DH
The Diffie-Hellman DH key agreement algorithm URI.

Method Summary

Modifier and Type Method and Description
  1. byte[]
getKANonce()
Returns a nonce that assures different key materials are generated.
  1. KeyInfo
getOriginatorKeyInfo()
Returns key information from the originator used to determine the secret key.
  1. java.security.spec.AlgorithmParameterSpec
getParameterSpec()
Returns the algorithm-specific input parameters of this AgreementMethod.
  1. KeyInfo
getRecipientKeyInfo()
Returns key information from the recipient used to determine the secret key.
Methods inherited from interface javax.xml.crypto.AlgorithmMethod
getAlgorithm
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported

Field Detail

DH

  1. static final java.lang.String DH
The Diffie-Hellman DH key agreement algorithm URI.
See Also:

Method Detail

getKANonce

  1. byte[] getKANonce()
Returns a nonce that assures different key materials are generated. Each invocation of this method returns a new clone.
Returns:
a nonce, or null if not specified

getParameterSpec

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

getOriginatorKeyInfo

  1. KeyInfo getOriginatorKeyInfo()
Returns key information from the originator used to determine the secret key. The marshalling method should ensure that the OriginatorKeyInfo belongs to the xenc namespace.
Returns:
an originator's KeyInfo or null if not specified

getRecipientKeyInfo

  1. KeyInfo getRecipientKeyInfo()
Returns key information from the recipient used to determine the secret key. The marshalling method should ensure that the RecipientKeyInfo belongs to the xenc namespace.
Returns:
a recipient's KeyInfo or null if not specified