Class DefaultAuthentication

  • All Implemented Interfaces:
    Authentication, java.io.Serializable, java.security.Principal

    @Immutable
    @Introspected
    public class DefaultAuthentication
    extends java.lang.Object
    implements Authentication
    A default implementation of the Authentication interface.
    Since:
    1.0.1
    Author:
    James Kleeh
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultAuthentication​(java.lang.String name, java.util.Map<java.lang.String,​java.lang.Object> attributes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getAttributes()  
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        equals, hashCode, implies, toString
    • Constructor Detail

      • DefaultAuthentication

        public DefaultAuthentication​(java.lang.String name,
                                     java.util.Map<java.lang.String,​java.lang.Object> attributes)
        Parameters:
        name - The name of the authentication
        attributes - The attributes for the authentication
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Specified by:
        getAttributes in interface Authentication
        Returns:
        Any additional attributes in the authentication