Class Authorization


  • public class Authorization
    extends Object
    Helper to process username / password pairs passed to the remote tier Identifies whether username / password is a ticket. Is ticket, if one of the following is true: a) Username == "ROLE_TICKET" (in any case) b) Username is not specified (i.e. null) c) Username is zero length
    • Field Detail

      • TICKET_USERID

        public static String TICKET_USERID
    • Constructor Detail

      • Authorization

        public Authorization​(String authorization)
        Construct
        Parameters:
        authorization - String
      • Authorization

        public Authorization​(String username,
                             String password)
        Construct
        Parameters:
        username - String
        password - String
    • Method Detail

      • getUserName

        public String getUserName()
      • getPassword

        public String getPassword()
      • getPasswordCharArray

        public char[] getPasswordCharArray()
      • isTicket

        public boolean isTicket()
      • getTicket

        public String getTicket()