Class NTLMLocalToken

  • All Implemented Interfaces:
    Serializable, Principal, net.sf.acegisecurity.Authentication
    Direct Known Subclasses:
    NTLMPassthruToken

    public class NTLMLocalToken
    extends net.sf.acegisecurity.providers.UsernamePasswordAuthenticationToken

    Used to provide authentication with a remote Windows server when the username and password are provided locally.

    Author:
    GKSpencer
    See Also:
    Serialized Form
    • Constructor Detail

      • NTLMLocalToken

        protected NTLMLocalToken()
        Class constructor
      • NTLMLocalToken

        protected NTLMLocalToken​(InetAddress ipAddr)
        Class constructor
        Parameters:
        ipAddr - InetAddress
      • NTLMLocalToken

        public NTLMLocalToken​(String username,
                              String plainPwd)
        Class constructor
        Parameters:
        username - String
        plainPwd - String
      • NTLMLocalToken

        public NTLMLocalToken​(String username,
                              String plainPwd,
                              String domain,
                              String ipAddr)
        Class constructor
        Parameters:
        username - String
        plainPwd - String
        domain - String
        ipAddr - String
    • Method Detail

      • isGuestLogon

        public final boolean isGuestLogon()
        Check if the user logged on as a guest
        Returns:
        boolean
      • isAdministrator

        public final boolean isAdministrator()
        Check if the user is an administrator
        Returns:
        boolean
      • hasAuthority

        public final boolean hasAuthority​(String authority)
        Search for the specified authority
        Parameters:
        authority - String
        Returns:
        boolean
      • hasClientDomain

        public final boolean hasClientDomain()
        Check if the client domain name is set
        Returns:
        boolean
      • getClientDomain

        public final String getClientDomain()
        Return the client domain
        Returns:
        String
      • hasClientAddress

        public final boolean hasClientAddress()
        Check if the client IP address is set
        Returns:
        boolean
      • getClientAddress

        public final String getClientAddress()
        Return the client IP address
        Returns:
        String