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 Object implements AgreementMethod
  • Field Details

    • kaNonce

      private byte[] kaNonce
    • agreementMethodInformation

      private List<Element> agreementMethodInformation
    • originatorKeyInfo

      private KeyInfo originatorKeyInfo
    • recipientKeyInfo

      private KeyInfo recipientKeyInfo
    • algorithmURI

      private String algorithmURI
  • Constructor Details

    • AgreementMethodImpl

      public AgreementMethodImpl(String algorithm)
      Parameters:
      algorithm -
  • Method Details

    • getKANonce

      public byte[] getKANonce()
      Returns a byte array.
      Specified by:
      getKANonce in interface AgreementMethod
      Returns:
      a byte array.
    • setKANonce

      public void setKANonce(byte[] kanonce)
      Sets the KANonce.jj
      Specified by:
      setKANonce in interface AgreementMethod
    • getAgreementMethodInformation

      public Iterator<Element> getAgreementMethodInformation()
      Returns additional information regarding the AgreementMethod.
      Specified by:
      getAgreementMethodInformation in interface AgreementMethod
      Returns:
      additional information regarding the AgreementMethod.
    • addAgreementMethodInformation

      public void addAgreementMethodInformation(Element info)
      Adds additional AgreementMethod information.
      Specified by:
      addAgreementMethodInformation in interface AgreementMethod
      Parameters:
      info - a Element that represents additional information specified by
           
         
    • revoveAgreementMethodInformation

      public void revoveAgreementMethodInformation(Element info)
      Removes additional AgreementMethod information.
      Specified by:
      revoveAgreementMethodInformation in interface AgreementMethod
      Parameters:
      info - a Element that represents additional information specified by
           
         
    • getOriginatorKeyInfo

      public KeyInfo getOriginatorKeyInfo()
      Returns information relating to the originator's shared secret.
      Specified by:
      getOriginatorKeyInfo in interface AgreementMethod
      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 interface AgreementMethod
      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 interface AgreementMethod
      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 interface AgreementMethod
      Parameters:
      keyInfo - information relating to the recipient's shared secret.
    • getAlgorithm

      public String getAlgorithm()
      Returns the algorithm URI of this CryptographicMethod.
      Specified by:
      getAlgorithm in interface AgreementMethod
      Returns:
      the algorithm URI of this CryptographicMethod