javax.xml.crypto.enc.keyinfo
Interface AgreementMethod
All Superinterfaces:
- public interface AgreementMethod
- extends AlgorithmMethod, XMLStructure
AgreementMethod
element.
Its schema definition is as follows:
Field Summary
Modifier and Type | Field and Description |
---|---|
|
DH
The Diffie-Hellman DH
key agreement algorithm URI.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getKANonce()
Returns a nonce that assures different key materials are generated.
|
getOriginatorKeyInfo()
Returns key information from the originator used to determine the
secret key.
|
|
|
getParameterSpec()
Returns the algorithm-specific input parameters of this AgreementMethod.
|
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
- static final java.lang.String DH
The Diffie-Hellman DH
key agreement algorithm URI.
See Also:
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
null
if not specified getParameterSpec
- 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:
getParameterSpec
in interface AlgorithmMethod
Returns:
the algorithm-specific input parameters of this
AgreementMethod
(may be null
if 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
KeyInfo
or null
if 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
KeyInfo
or null
if not
specified