Class XMLCipher.Factory.AgreementMethodImpl
- java.lang.Object
-
- org.apache.xml.security.encryption.XMLCipher.Factory.AgreementMethodImpl
-
- All Implemented Interfaces:
AgreementMethod
- Enclosing class:
- XMLCipher.Factory
private class XMLCipher.Factory.AgreementMethodImpl extends java.lang.Object implements AgreementMethod
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<org.w3c.dom.Element>
agreementMethodInformation
private java.lang.String
algorithmURI
private byte[]
kaNonce
private KeyInfo
originatorKeyInfo
private KeyInfo
recipientKeyInfo
-
Constructor Summary
Constructors Constructor Description AgreementMethodImpl(java.lang.String algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAgreementMethodInformation(org.w3c.dom.Element info)
Adds additionalAgreementMethod
information.java.util.Iterator<org.w3c.dom.Element>
getAgreementMethodInformation()
Returns additional information regarding theAgreementMethod
.java.lang.String
getAlgorithm()
Returns the algorithm URI of thisCryptographicMethod
.byte[]
getKANonce()
Returns abyte
array.KeyInfo
getOriginatorKeyInfo()
Returns information relating to the originator's shared secret.KeyInfo
getRecipientKeyInfo()
Returns information relating to the recipient's shared secret.void
revoveAgreementMethodInformation(org.w3c.dom.Element info)
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.
-
-
-
Method Detail
-
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
public java.util.Iterator<org.w3c.dom.Element> getAgreementMethodInformation()
Returns additional information regarding theAgreementMethod
.- Specified by:
getAgreementMethodInformation
in interfaceAgreementMethod
- Returns:
- additional information regarding the
AgreementMethod
.
-
addAgreementMethodInformation
public void addAgreementMethodInformation(org.w3c.dom.Element info)
Adds additionalAgreementMethod
information.- Specified by:
addAgreementMethodInformation
in interfaceAgreementMethod
- Parameters:
info
- aElement
that represents additional information specified by
-
revoveAgreementMethodInformation
public void revoveAgreementMethodInformation(org.w3c.dom.Element info)
Removes additionalAgreementMethod
information.- Specified by:
revoveAgreementMethodInformation
in interfaceAgreementMethod
- Parameters:
info
- aElement
that represents additional information specified by
-
getOriginatorKeyInfo
public KeyInfo 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
public void setOriginatorKeyInfo(KeyInfo keyInfo)
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
public KeyInfo 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
public void setRecipientKeyInfo(KeyInfo keyInfo)
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
public java.lang.String getAlgorithm()
Returns the algorithm URI of thisCryptographicMethod
.- Specified by:
getAlgorithm
in interfaceAgreementMethod
- Returns:
- the algorithm URI of this
CryptographicMethod
-
-