Interface WebAuthSessionContext
-
public interface WebAuthSessionContext
A WebAuthCWebAuthSessionContext provides information about theWebAuthUser
and the Security Levels granted in theWebAuthSession
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WebAuthSessionContext.GsonAdapter
AJsonSerializer
forWebAuthSessionContext
instances
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<AttributeSource>
getAttributeSource()
com.google.common.collect.ImmutableCollection<SecurityLevelConfig>
getSecurityLevelGrants()
java.util.Optional<WebAuthUser>
getUser()
-
-
-
Method Detail
-
getAttributeSource
@Nonnull java.util.Optional<AttributeSource> getAttributeSource()
- Returns:
- the
AttributeSource
from the IdP response
-
getUser
@Nonnull java.util.Optional<WebAuthUser> getUser()
- Returns:
- an
Optional
containing theWebAuthUser
if the user has authenticated from a federated IdP or an empty Optional if the user has not yet successfully authenticated
-
getSecurityLevelGrants
@Nonnull com.google.common.collect.ImmutableCollection<SecurityLevelConfig> getSecurityLevelGrants()
- Returns:
- an
ImmutableCollection
of the user's currentSecurity Level Grants
-
-