Class RADIUSPrincipal

    • Constructor Detail

      • RADIUSPrincipal

        public RADIUSPrincipal​(String name)
        Contruct a new instance.
        Parameters:
        name - the name of the principal
    • Method Detail

      • getName

        public String getName()
        Return the RADIUS username for this RADIUSPrincipal.

        Specified by:
        getName in interface Principal
        Returns:
        the RADIUS username for this RADIUSPrincipal
      • toString

        public String toString()
        Return a string representation of this RADIUSPrincipal.

        Specified by:
        toString in interface Principal
        Overrides:
        toString in class Object
        Returns:
        a string representation of this RADIUSPrincipal.
      • equals

        public boolean equals​(Object o)
        Compares the specified Object with this RADIUSPrincipal for equality. Returns true if the given object is also a RADIUSPrincipal and the two RADIUSPrincipals have the same username.

        Specified by:
        equals in interface Principal
        Overrides:
        equals in class Object
        Parameters:
        o - Object to be compared for equality with this RADIUSPrincipal.
        Returns:
        true if the specified Object is equal equal to this RADIUSPrincipal.
      • hashCode

        public int hashCode()
        Return a hash code for this RADIUSPrincipal.

        Specified by:
        hashCode in interface Principal
        Overrides:
        hashCode in class Object
        Returns:
        a hash code for this RADIUSPrincipal.