Class ContextMessageSecurityProvider.Context

  • Enclosing interface:
    ContextMessageSecurityProvider

    public static class ContextMessageSecurityProvider.Context
    extends java.lang.Object
    Class representing a context in which a ContextMessageSecurityProvider should determine keys and validation logic to return.
    • Constructor Summary

      Constructors 
      Constructor Description
      Context​(java.lang.String usage)
      Class representing a context in which a ContextMessageSecurityProvider should determine keys and validation logic to return.
      Context​(java.lang.String usage, java.lang.String relatedOrganisation)
      Class representing a context in which a ContextMessageSecurityProvider should determine keys and validation logic to return.
      Context​(java.lang.String usage, java.lang.String relatedOrganisation, java.util.Map<java.lang.String,​java.lang.Object> properties)
      Class representing a context in which a ContextMessageSecurityProvider should determine keys and validation logic to return.
    • Constructor Detail

      • Context

        public Context​(java.lang.String usage)
        Class representing a context in which a ContextMessageSecurityProvider should determine keys and validation logic to return.
        Parameters:
        usage - the usage, available usages is up to the calling application and provider implementation to define, null for default. (For instance in a SAML application could one usage be IDP Signer and another be MetaData Signer).
      • Context

        public Context​(java.lang.String usage,
                       java.lang.String relatedOrganisation)
        Class representing a context in which a ContextMessageSecurityProvider should determine keys and validation logic to return.
        Parameters:
        usage - the usage, available usages is up to the calling application and provider implementation to define, null for default. (For instance in a SAML application could one usage be IDP Signer and another be MetaData Signer).
        relatedOrganisation - the related organisation, null for default.
      • Context

        public Context​(java.lang.String usage,
                       java.lang.String relatedOrganisation,
                       java.util.Map<java.lang.String,​java.lang.Object> properties)
        Class representing a context in which a ContextMessageSecurityProvider should determine keys and validation logic to return.
        Parameters:
        usage - the usage, available usages is up to the calling application and provider implementation to define, null for default. (For instance in a SAML application could one usage be IDP Signer and another be MetaData Signer).
        relatedOrganisation - the related organisation, null for default.
        properties - a map of provider specific properties which is up to the calling application and provider implementation to define.
    • Method Detail

      • getUsage

        public java.lang.String getUsage()
        Returns:
        the usage, available usages is up to the calling application and provider implementation to define, null for default. (For instance in a SAML application could one usage be IDP Signer and another be MetaData Signer).
      • setUsage

        public void setUsage​(java.lang.String usage)
        Parameters:
        usage - the usage, available usages is up to the calling application and provider implementation to define, null for default. (For instance in a SAML application could one usage be IDP Signer and another be MetaData Signer).
      • getRelatedOrganisation

        public java.lang.String getRelatedOrganisation()
        Returns:
        the related organisation, null for default.
      • setRelatedOrganisation

        public void setRelatedOrganisation​(java.lang.String relatedOrganisation)
        Parameters:
        relatedOrganisation - the related organisation, null for default.
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Returns:
        a map of provider specific properties which is up to the calling application and provider implementation to define. can be null if no properties is defined.
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
        Parameters:
        properties - a map of provider specific properties which is up to the calling application and provider implementation to define.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object