javax.xml.crypto.enc.keyinfo
Interface AgreementMethod
-
- All Superinterfaces:
- AlgorithmMethod, XMLStructure
public interface AgreementMethod extends AlgorithmMethod, XMLStructure
Represents theAgreementMethodelement. Its schema definition is as follows:
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringDHThe Diffie-Hellman DH key agreement algorithm URI.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description byte[]getKANonce()Returns a nonce that assures different key materials are generated.KeyInfogetOriginatorKeyInfo()Returns key information from the originator used to determine the secret key.java.security.spec.AlgorithmParameterSpecgetParameterSpec()Returns the algorithm-specific input parameters of this AgreementMethod.KeyInfogetRecipientKeyInfo()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
static final java.lang.String DH
The Diffie-Hellman DH key agreement algorithm URI.- See Also:
- Constant Field Values
-
-
Method Detail
-
getKANonce
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
nullif not specified
-
getParameterSpec
java.security.spec.AlgorithmParameterSpec getParameterSpec()
Returns the algorithm-specific input parameters of this AgreementMethod. The returned parameters can be typecast to aAgreementMethodParameterSpecobject.- Specified by:
getParameterSpecin interfaceAlgorithmMethod- Returns:
- the algorithm-specific input parameters of this
AgreementMethod(may benullif not specified)
-
getOriginatorKeyInfo
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
KeyInfoornullif not specified
-
getRecipientKeyInfo
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
KeyInfoornullif not specified
-
-