@Immutable @Introspected public class DefaultAuthentication extends java.lang.Object implements Authentication
Constructor and Description |
---|
DefaultAuthentication(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attributes) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes() |
java.lang.String |
getName() |
public DefaultAuthentication(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attributes)
name
- The name of the authenticationattributes
- The attributes for the authenticationpublic java.lang.String getName()
getName
in interface java.security.Principal
@Nonnull public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
getAttributes
in interface Authentication