Package org.apereo.cas.authentication
Interface AuthenticationTransaction
- All Superinterfaces:
Serializable
This is
AuthenticationTransaction.- Since:
- 4.2.0
-
Method Summary
Modifier and TypeMethodDescriptioncollect(Collection<Authentication> authentications) Collect previous authentications.Gets authentications.Gets credentials.default <T extends Credential>
Collection<T> getCredentialsOfType(Class<T> type) Gets credentials of type.default Optional<Credential> Gets the first (primary) credential in the chain.Gets service linked to this transaction.default booleanhasCredentialOfType(Class<? extends Credential> type) Does this AuthenticationTransaction contain a credential of the given type?
-
Method Details
-
collect
Collect previous authentications.- Parameters:
authentications- the authentications- Returns:
- the authentication transaction
-
getService
Service getService()Gets service linked to this transaction.- Returns:
- the service
-
getCredentials
Collection<Credential> getCredentials()Gets credentials.- Returns:
- the credentials
-
getAuthentications
Collection<Authentication> getAuthentications()Gets authentications.- Returns:
- the authentications
-
getPrimaryCredential
Gets the first (primary) credential in the chain.- Returns:
- the credential
-
hasCredentialOfType
Does this AuthenticationTransaction contain a credential of the given type?- Parameters:
type- the credential type to check for- Returns:
- true if this AuthenticationTransaction contains a credential of the specified type
-
getCredentialsOfType
Gets credentials of type.- Type Parameters:
T- the type parameter- Parameters:
type- the type- Returns:
- the credentials of type
-