public class AuthenticatedUser
extends java.lang.Object
Constructor and Description |
---|
AuthenticatedUser()
Reserved for internal use.
|
AuthenticatedUser(java.lang.String id,
java.lang.String displayName,
java.lang.String securityCheckName)
Constructs an AuthenticatedUser that has no attributes.
|
AuthenticatedUser(java.lang.String id,
java.lang.String displayName,
java.lang.String securityCheckName,
java.util.Map attributes)
Constructs an AuthenticatedUser.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Map |
getAttributes()
Gets the custom attributes of the user, as a map of attribute name and attribute value.
|
long |
getAuthenticatedAt()
Gets the time when the user was authenticated.
|
java.lang.String |
getAuthenticatedBy()
Gets the name of the security check that authenticated the user.
|
java.lang.String |
getDisplayName()
Gets the display name of the user.
|
java.lang.String |
getId()
Gets the user ID assigned by the security check.
|
public AuthenticatedUser()
public AuthenticatedUser(java.lang.String id, java.lang.String displayName, java.lang.String securityCheckName)
id
- the ID of the userdisplayName
- the display namesecurityCheckName
- the name of the security check that authenticated the userpublic AuthenticatedUser(java.lang.String id, java.lang.String displayName, java.lang.String securityCheckName, java.util.Map attributes)
id
- the ID of the userdisplayName
- the display namesecurityCheckName
- the name of the security check that authenticated the userattributes
- custom attributes of the user, provided as a map of attribute name and value. Can be null, which
is the same as an empty map.public long getAuthenticatedAt()
public java.lang.String getAuthenticatedBy()
public java.lang.String getId()
public java.lang.String getDisplayName()
public java.util.Map getAttributes()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
© Copyright IBM Corp. 2006, 2015. All Rights Reserved.