Package com.spotfire.server.security
Class CustomAuthenticatorPrincipal
java.lang.Object
com.spotfire.server.security.CustomAuthenticatorPrincipal
- All Implemented Interfaces:
Serializable,Principal
This class represents a principal that was authenticated by a
CustomAuthenticator or a
CustomWebAuthenticator.- Since:
- 7.6
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCustomAuthenticatorPrincipal(String username, String domainName, String displayName, String emailAddress) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name of the authenticated principal.Returns the domain name of the authenticated principal.Returns the email address of the authenticated principal.getName()Returns the username of the authenticated principal.Returns the username of the authenticated principal.toString()
-
Constructor Details
-
CustomAuthenticatorPrincipal
public CustomAuthenticatorPrincipal(String username, String domainName, String displayName, String emailAddress) Creates a new instance.- Parameters:
username- the username, must not benullor an empty stringdomainName- the domain name, must not benullor an empty stringdisplayName- the user's display name, may benullbut must not be an empty stringemailAddress- the user's email address, may benullbut must not be an empty string- Since:
- 7.6
-
-
Method Details
-
getName
Returns the username of the authenticated principal. -
getUsername
Returns the username of the authenticated principal.- Returns:
- the username
- Since:
- 7.6
-
getDomainName
Returns the domain name of the authenticated principal.- Returns:
- the domain name
- Since:
- 7.6
-
getDisplayName
Returns the display name of the authenticated principal.- Returns:
- the display name
- Since:
- 7.6
-
getEmailAddress
Returns the email address of the authenticated principal.- Returns:
- the email address
- Since:
- 7.6
-
toString
-