Package org.yamcs.security
Class AuthenticationInfo
- java.lang.Object
-
- org.yamcs.security.AuthenticationInfo
-
- Direct Known Subclasses:
OpenIDAuthModule.OpenIDAuthenticationInfo
public class AuthenticationInfo extends Object
Data holder for information related to a verified authentication attempt.The default implementation retains only the verified username, extending classes may add other information such as externally issued tickets.
-
-
Constructor Summary
Constructors Constructor Description AuthenticationInfo(AuthModule authenticator, String username)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExternalIdentity(String provider, String externalIdentity)
AuthModule
getAuthenticator()
TheAuthModule
that verified this authentication attempt.String
getDisplayName()
String
getEmail()
Map<String,String>
getExternalIdentities()
String
getUsername()
The username of the user that was verified.void
setDisplayName(String displayName)
void
setEmail(String email)
String
toString()
-
-
-
Constructor Detail
-
AuthenticationInfo
public AuthenticationInfo(AuthModule authenticator, String username)
-
-
Method Detail
-
getAuthenticator
public AuthModule getAuthenticator()
TheAuthModule
that verified this authentication attempt.
-
getUsername
public String getUsername()
The username of the user that was verified.
-
getDisplayName
public String getDisplayName()
-
setDisplayName
public void setDisplayName(String displayName)
-
getEmail
public String getEmail()
-
setEmail
public void setEmail(String email)
-
-