Class SecurityConfig


  • public class SecurityConfig
    extends Object
    Class through which the security related parameters for a context may be configured.
    Author:
    Rajiv Mordani
    • Constructor Detail

      • SecurityConfig

        public SecurityConfig()
        Create an instance of SecurityConfig
    • Method Detail

      • setSecurityConstraints

        public void setSecurityConstraints​(Set<SecurityConstraint> securityConstraints)
        Set the security constraints for a context.
        Parameters:
        securityConstraints - a set of constraints for the context on which this security configuration applies.
        See Also:
        SecurityConstraint
      • setLoginConfig

        public void setLoginConfig​(LoginConfig lc)
        Configures the login related configuration for the context
        Parameters:
        lc - the login config for the context
        See Also:
        LoginConfig
      • getSecurityConstraints

        public Set<SecurityConstraint> getSecurityConstraints()
        Gets the security constraints for the context
        Returns:
        the security constraints for the context
        See Also:
        SecurityConstraint
      • getLoginConfig

        public LoginConfig getLoginConfig()
        Gets the login config for the context
        Returns:
        the login configuration for the context
        See Also:
        LoginConfig
      • toString

        public String toString()
        Returns a formatted string of the state.
        Overrides:
        toString in class Object