Class KeyAgreementEncryptionConfiguration

java.lang.Object
org.opensaml.xmlsec.encryption.support.KeyAgreementEncryptionConfiguration
Direct Known Subclasses:
SAMLMetadataKeyAgreementEncryptionConfiguration

public class KeyAgreementEncryptionConfiguration extends Object
A component representing the specific configuration for a key agreement encryption operation.
  • Field Details

  • Constructor Details

    • KeyAgreementEncryptionConfiguration

      public KeyAgreementEncryptionConfiguration()
  • Method Details

    • getAlgorithm

      @Nullable public String getAlgorithm()
      Get the algorithm URI.
      Returns:
      the algorithm URI
    • setAlgorithm

      public void setAlgorithm(@Nullable String uri)
      Set the algorithm URI.
      Parameters:
      uri - the algorithm URI
    • getParameters

      @Nullable @NotLive @Unmodifiable public Collection<KeyAgreementParameter> getParameters()
      Get the collection of KeyAgreementParameter.

      Note that null is a very significant return value here as the calling code will skip nulls but pick the first non-null result, so an empty collection will circumvent key agreement. This does not imply nullable elements.

      Returns:
      the collection of parameters or null if none exist
    • setParameters

      public void setParameters(@Nullable Collection<KeyAgreementParameter> params)
      Set the collection of KeyAgreementParameter.
      Parameters:
      params - the collection of parameters