Class EncryptionContext

  • All Implemented Interfaces:
    Iterable<org.opensaml.messaging.context.BaseContext>

    public final class EncryptionContext
    extends org.opensaml.messaging.context.BaseContext
    Context supplying encryption parameters for the different forms of SAML XML encryption.

    The presence or absence of a particular parameter set is generally an indicator as to the requirement to encrypt that type of object.

    • Field Detail

      • assertionEncParams

        @Nullable
        private org.opensaml.xmlsec.EncryptionParameters assertionEncParams
        Parameters for assertion encrytion.
      • idEncParams

        @Nullable
        private org.opensaml.xmlsec.EncryptionParameters idEncParams
        Parameters for identifier encrytion.
      • attributeEncParams

        @Nullable
        private org.opensaml.xmlsec.EncryptionParameters attributeEncParams
        Parameters for attribute encrytion.
    • Constructor Detail

      • EncryptionContext

        public EncryptionContext()
    • Method Detail

      • getAssertionEncryptionParameters

        @Nullable
        public org.opensaml.xmlsec.EncryptionParameters getAssertionEncryptionParameters()
        Get the encryption parameters to use for encryption of assertions.
        Returns:
        parameters to use
      • setAssertionEncryptionParameters

        @Nonnull
        public EncryptionContext setAssertionEncryptionParameters​(@Nullable
                                                                  org.opensaml.xmlsec.EncryptionParameters params)
        Set the encryption parameters to use for encryption of assertions.
        Parameters:
        params - parameters to use
        Returns:
        this context
      • getIdentifierEncryptionParameters

        @Nullable
        public org.opensaml.xmlsec.EncryptionParameters getIdentifierEncryptionParameters()
        Get the encryption parameters to use for encryption of identifiers.
        Returns:
        parameters to use
      • setIdentifierEncryptionParameters

        @Nonnull
        public EncryptionContext setIdentifierEncryptionParameters​(@Nullable
                                                                   org.opensaml.xmlsec.EncryptionParameters params)
        Set the encryption parameters to use for encryption of identifiers.
        Parameters:
        params - parameters to use
        Returns:
        this context
      • getAttributeEncryptionParameters

        @Nullable
        public org.opensaml.xmlsec.EncryptionParameters getAttributeEncryptionParameters()
        Get the encryption parameters to use for encryption of attributes.
        Returns:
        parameters to use
      • setAttributeEncryptionParameters

        @Nonnull
        public EncryptionContext setAttributeEncryptionParameters​(@Nullable
                                                                  org.opensaml.xmlsec.EncryptionParameters params)
        Set the encryption parameters to use for encryption of attributes.
        Parameters:
        params - parameters to use
        Returns:
        this context