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 voidaddExternalIdentity(String provider, String externalIdentity)AuthModulegetAuthenticator()TheAuthModulethat verified this authentication attempt.StringgetDisplayName()StringgetEmail()Map<String,String>getExternalIdentities()StringgetUsername()The username of the user that was verified.voidsetDisplayName(String displayName)voidsetEmail(String email)StringtoString()
-
-
-
Constructor Detail
-
AuthenticationInfo
public AuthenticationInfo(AuthModule authenticator, String username)
-
-
Method Detail
-
getAuthenticator
public AuthModule getAuthenticator()
TheAuthModulethat 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)
-
-