Class SimpleAuthenticationBroker

    • Method Detail

      • setAnonymousAccessAllowed

        public void setAnonymousAccessAllowed​(boolean anonymousAccessAllowed)
      • setAnonymousUser

        public void setAnonymousUser​(String anonymousUser)
      • setAnonymousGroup

        public void setAnonymousGroup​(String anonymousGroup)
      • setUserPasswords

        public void setUserPasswords​(Map<String,​String> value)
      • authenticate

        public SecurityContext authenticate​(String username,
                                            String password,
                                            X509Certificate[] certificates)
                                     throws SecurityException
        Description copied from interface: AuthenticationBroker
        Authenticate the given user using the mechanism provided by this service.
        Parameters:
        username - the given user name to authenticate, null indicates an anonymous user.
        password - the given password for the user to authenticate.
        certificates - for an SSL channel the certificates from remote peer.
        Returns:
        a new SecurityContext for the authenticated user.
        Throws:
        SecurityException - if the user cannot be authenticated.