com.google.enterprise.adaptor
Interface AuthnIdentity


public interface AuthnIdentity

User identification information for understanding who a user is or if they are allowed to access a resource.


Method Summary
 Set<GroupPrincipal> getGroups()
          Gets all the groups a user belongs to in an immutable set.
 String getPassword()
          Gets the user's password.
 UserPrincipal getUser()
          Gets the user principal.
 

Method Detail

getUser

UserPrincipal getUser()
Gets the user principal. This value will always be available.

Returns:
the user's identifier.

getPassword

String getPassword()
Gets the user's password.

Returns:
the user's password, or null if it is unavailable.

getGroups

Set<GroupPrincipal> getGroups()
Gets all the groups a user belongs to in an immutable set.

Returns:
the user's groups, or null if they are unavailable.