Class WebAuthnManagementContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.plugin.authn.webauthn.context.WebAuthnManagementContext
- All Implemented Interfaces:
Iterable<BaseContext>
A WebAuthn admin management context for the management admin flow.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]The ID of a credential that is going to be removed.private Collection<EnhancedCredentialRecord>The located set of credentials registered for the given searchUsername.private StringCanonical principal name of the authenticated user, acting as an admin.private StringThe raw username entered by the admin to search for.private StringThe username of the user to find and manage credentials for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get the ID of the credential that is going to be removed.Get the credentials found to belong to the given searchUsername.Get the canonical principal name of the authenticated subject.Gets the raw username entered by the admin to search for.Get the username of the user to find and manage credentials for.setCredentialIdToRemove(byte[] id) Set the ID of the credential that is going to be removed.setFoundCredentials(Collection<EnhancedCredentialRecord> credentials) Set the credentials found to belong to the given searchUsername.setPrincipalName(String name) Set the canonical principal name of the authenticated subject.setRawSearchUsername(String name) Sets the raw username entered by the admin to search for.setSearchUsername(String name) Set the username of the user to find and manage credentials for.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
principalName
Canonical principal name of the authenticated user, acting as an admin. -
searchUsername
The username of the user to find and manage credentials for. This username will likely mutate based on subject canonicalization into the username of the user stored in the credential repository. -
rawSearchUsername
The raw username entered by the admin to search for. Is not transformed or canonicalized in anyway. -
foundCredentials
The located set of credentials registered for the given searchUsername. -
credentialIdToRemove
@Nullable private byte[] credentialIdToRemoveThe ID of a credential that is going to be removed.
-
-
Constructor Details
-
WebAuthnManagementContext
public WebAuthnManagementContext()
-
-
Method Details
-
getPrincipalName
Get the canonical principal name of the authenticated subject.- Returns:
- the canonical principal name
-
setPrincipalName
Set the canonical principal name of the authenticated subject.- Parameters:
name- the canonical principal name- Returns:
- this context
-
getSearchUsername
Get the username of the user to find and manage credentials for.- Returns:
- the username to search for
-
setSearchUsername
Set the username of the user to find and manage credentials for.- Parameters:
name- the username to search for- Returns:
- this context
-
getRawSearchUsername
Gets the raw username entered by the admin to search for.- Returns:
- the raw username entered by the admin
- Since:
- 1.1.0
-
setRawSearchUsername
Sets the raw username entered by the admin to search for.- Parameters:
name- the raw username entered by the admin- Returns:
- this context
- Since:
- 1.1.0
-
setFoundCredentials
@Nonnull public WebAuthnManagementContext setFoundCredentials(@Nullable Collection<EnhancedCredentialRecord> credentials) Set the credentials found to belong to the given searchUsername.- Parameters:
credentials- the set of credentials- Returns:
- this context
-
getFoundCredentials
Get the credentials found to belong to the given searchUsername.- Returns:
- the credentials.
-
setCredentialIdToRemove
Set the ID of the credential that is going to be removed.- Parameters:
id- the credential identifier- Returns:
- this context
-
getCredentialIdToRemove
@Nullable public byte[] getCredentialIdToRemove()Get the ID of the credential that is going to be removed.- Returns:
- the credential id to remove.
-