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>agreementMethodInformationprivate java.lang.StringalgorithmURIprivate byte[]kaNonceprivate KeyInfooriginatorKeyInfoprivate KeyInforecipientKeyInfo
-
Constructor Summary
Constructors Constructor Description AgreementMethodImpl(java.lang.String algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAgreementMethodInformation(org.w3c.dom.Element info)Adds additionalAgreementMethodinformation.java.util.Iterator<org.w3c.dom.Element>getAgreementMethodInformation()Returns additional information regarding theAgreementMethod.java.lang.StringgetAlgorithm()Returns the algorithm URI of thisCryptographicMethod.byte[]getKANonce()Returns abytearray.KeyInfogetOriginatorKeyInfo()Returns information relating to the originator's shared secret.KeyInfogetRecipientKeyInfo()Returns information relating to the recipient's shared secret.voidrevoveAgreementMethodInformation(org.w3c.dom.Element info)Removes additionalAgreementMethodinformation.voidsetKANonce(byte[] kanonce)Sets the KANonce.jjvoidsetOriginatorKeyInfo(KeyInfo keyInfo)Sets the information relating to the originator's shared secret.voidsetRecipientKeyInfo(KeyInfo keyInfo)Sets the information relating to the recipient's shared secret.
-
-
-
Method Detail
-
getKANonce
public byte[] getKANonce()
Returns abytearray.- Specified by:
getKANoncein interfaceAgreementMethod- Returns:
- a
bytearray.
-
setKANonce
public void setKANonce(byte[] kanonce)
Sets the KANonce.jj- Specified by:
setKANoncein interfaceAgreementMethod
-
getAgreementMethodInformation
public java.util.Iterator<org.w3c.dom.Element> getAgreementMethodInformation()
Returns additional information regarding theAgreementMethod.- Specified by:
getAgreementMethodInformationin interfaceAgreementMethod- Returns:
- additional information regarding the
AgreementMethod.
-
addAgreementMethodInformation
public void addAgreementMethodInformation(org.w3c.dom.Element info)
Adds additionalAgreementMethodinformation.- Specified by:
addAgreementMethodInformationin interfaceAgreementMethod- Parameters:
info- aElementthat represents additional information specified by
-
revoveAgreementMethodInformation
public void revoveAgreementMethodInformation(org.w3c.dom.Element info)
Removes additionalAgreementMethodinformation.- Specified by:
revoveAgreementMethodInformationin interfaceAgreementMethod- Parameters:
info- aElementthat represents additional information specified by
-
getOriginatorKeyInfo
public KeyInfo getOriginatorKeyInfo()
Returns information relating to the originator's shared secret.- Specified by:
getOriginatorKeyInfoin 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:
setOriginatorKeyInfoin 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:
getRecipientKeyInfoin 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:
setRecipientKeyInfoin 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:
getAlgorithmin interfaceAgreementMethod- Returns:
- the algorithm URI of this
CryptographicMethod
-
-