Class XMLCipher.Factory.AgreementMethodImpl
java.lang.Object
org.apache.xml.security.encryption.XMLCipher.Factory.AgreementMethodImpl
- All Implemented Interfaces:
AgreementMethod
- Enclosing class:
- XMLCipher.Factory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds additionalAgreementMethod
information.Returns additional information regarding theAgreementMethod
.Returns the algorithm URI of thisCryptographicMethod
.byte[]
Returns abyte
array.Returns information relating to the originator's shared secret.Returns information relating to the recipient's shared secret.void
Removes additionalAgreementMethod
information.void
setKANonce
(byte[] kanonce) Sets the KANonce.jjvoid
setOriginatorKeyInfo
(KeyInfo keyInfo) Sets the information relating to the originator's shared secret.void
setRecipientKeyInfo
(KeyInfo keyInfo) Sets the information relating to the recipient's shared secret.
-
Field Details
-
kaNonce
private byte[] kaNonce -
agreementMethodInformation
-
originatorKeyInfo
-
recipientKeyInfo
-
algorithmURI
-
-
Constructor Details
-
AgreementMethodImpl
- Parameters:
algorithm
-
-
-
Method Details
-
getKANonce
public byte[] getKANonce()Returns abyte
array.- Specified by:
getKANonce
in interfaceAgreementMethod
- Returns:
- a
byte
array.
-
setKANonce
public void setKANonce(byte[] kanonce) Sets the KANonce.jj- Specified by:
setKANonce
in interfaceAgreementMethod
-
getAgreementMethodInformation
Returns additional information regarding theAgreementMethod
.- Specified by:
getAgreementMethodInformation
in interfaceAgreementMethod
- Returns:
- additional information regarding the
AgreementMethod
.
-
addAgreementMethodInformation
Adds additionalAgreementMethod
information.- Specified by:
addAgreementMethodInformation
in interfaceAgreementMethod
- Parameters:
info
- aElement
that represents additional information specified by
-
revoveAgreementMethodInformation
Removes additionalAgreementMethod
information.- Specified by:
revoveAgreementMethodInformation
in interfaceAgreementMethod
- Parameters:
info
- aElement
that represents additional information specified by
-
getOriginatorKeyInfo
Returns information relating to the originator's shared secret.- Specified by:
getOriginatorKeyInfo
in interfaceAgreementMethod
- Returns:
- information relating to the originator's shared secret.
-
setOriginatorKeyInfo
Sets the information relating to the originator's shared secret.- Specified by:
setOriginatorKeyInfo
in interfaceAgreementMethod
- Parameters:
keyInfo
- information relating to the originator's shared secret.
-
getRecipientKeyInfo
Returns information relating to the recipient's shared secret.- Specified by:
getRecipientKeyInfo
in interfaceAgreementMethod
- Returns:
- information relating to the recipient's shared secret.
-
setRecipientKeyInfo
Sets the information relating to the recipient's shared secret.- Specified by:
setRecipientKeyInfo
in interfaceAgreementMethod
- Parameters:
keyInfo
- information relating to the recipient's shared secret.
-
getAlgorithm
Returns the algorithm URI of thisCryptographicMethod
.- Specified by:
getAlgorithm
in interfaceAgreementMethod
- Returns:
- the algorithm URI of this
CryptographicMethod
-