@IsSPIInterface
public interface IAuthCredentialToSubjectResolverSPI
| Modifier and Type | Method and Description |
|---|---|
IAuthSubject |
getSubjectFromCredentials(IAuthCredentials aCredentials)
This method is only called if
supportsCredentials(IAuthCredentials) returned true. |
boolean |
supportsCredentials(IAuthCredentials aCredentials)
Check if this class can handle the passed credential implementation.
|
boolean supportsCredentials(@Nonnull IAuthCredentials aCredentials)
aCredentials - The credentials to be validated. Never null.true if this class can handle the given credentials,
false otherwise.@Nullable IAuthSubject getSubjectFromCredentials(@Nonnull IAuthCredentials aCredentials)
supportsCredentials(IAuthCredentials) returned true.
It should try to resolve the credentials to an IAuthSubject. If
resolving fails, no exception should be thrown, but null
should be returned.aCredentials - The credentials to be resolved to a subject. Never null
.null if the credentials could not be resolved, the
subject otherwise.Copyright © 2016–2021 Philip Helger. All rights reserved.