Class ClientCredential
java.lang.Object
org.apereo.cas.authentication.credential.AbstractCredential
org.apereo.cas.authentication.principal.ClientCredential
- All Implemented Interfaces:
Serializable,org.apereo.cas.authentication.Credential
public class ClientCredential
extends org.apereo.cas.authentication.credential.AbstractCredential
This class represents client credentials and (after authentication) a user profile.
- Since:
- 3.5.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the client used to perform the authentication.static final StringThe prefix used when building an identifier for an unauthenticated user.Fields inherited from interface org.apereo.cas.authentication.Credential
CREDENTIAL_TYPE_ATTRIBUTE, UNKNOWN_ID -
Constructor Summary
ConstructorsConstructorDescriptionClientCredential(String clientName, org.pac4j.core.profile.UserProfile userProfile) ClientCredential(org.pac4j.core.credentials.Credentials credentials, String clientName) ClientCredential(org.pac4j.core.credentials.Credentials credentials, String clientName, boolean typedIdUsed, org.pac4j.core.profile.UserProfile userProfile) -
Method Summary
Modifier and TypeMethodDescriptionName of the client that established the credential.org.pac4j.core.credentials.CredentialsThe internal credentials provided by the authentication at the provider.getId()org.pac4j.core.profile.UserProfilebooleanvoidsetTypedIdUsed(boolean typedIdUsed) voidsetUserProfile(org.pac4j.core.profile.UserProfile userProfile) The user profile after authentication.toString()Methods inherited from class org.apereo.cas.authentication.credential.AbstractCredential
equals, getCredentialMetadata, hashCode, isValid, setCredentialMetadata, validate
-
Field Details
-
NOT_YET_AUTHENTICATED
The prefix used when building an identifier for an unauthenticated user.- See Also:
-
AUTHENTICATION_ATTRIBUTE_CLIENT_NAME
The name of the client used to perform the authentication.- See Also:
-
-
Constructor Details
-
ClientCredential
-
ClientCredential
public ClientCredential() -
ClientCredential
-
ClientCredential
public ClientCredential(org.pac4j.core.credentials.Credentials credentials, String clientName, boolean typedIdUsed, org.pac4j.core.profile.UserProfile userProfile)
-
-
Method Details
-
getUserProfile
public org.pac4j.core.profile.UserProfile getUserProfile() -
getId
-
toString
- Overrides:
toStringin classorg.apereo.cas.authentication.credential.AbstractCredential
-
setTypedIdUsed
public void setTypedIdUsed(boolean typedIdUsed) -
setUserProfile
public void setUserProfile(org.pac4j.core.profile.UserProfile userProfile) The user profile after authentication. -
getCredentials
public org.pac4j.core.credentials.Credentials getCredentials()The internal credentials provided by the authentication at the provider. -
getClientName
Name of the client that established the credential. -
isTypedIdUsed
public boolean isTypedIdUsed()
-