Class CredentialRegistrationSerializer
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.authn.webauthn.storage.impl.CredentialRegistrationSerializer
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,StorageSerializer<Set<CredentialRecord>>
public class CredentialRegistrationSerializer
extends AbstractInitializableComponent
implements StorageSerializer<Set<CredentialRecord>>
Serialize the WebauthnPublicKeyCredentialRecord to a string using Hex encoding.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.fasterxml.jackson.databind.ObjectMapperThe CBOR friendly json mapper. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(long version, String context, String key, String value, Long expiration) serialize(Set<CredentialRecord> instance) Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
jsonMapper
private final com.fasterxml.jackson.databind.ObjectMapper jsonMapperThe CBOR friendly json mapper.
-
-
Constructor Details
-
CredentialRegistrationSerializer
public CredentialRegistrationSerializer()Constructor.
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceStorageSerializer<Set<CredentialRecord>>- Throws:
IOException
-
deserialize
@Nonnull @Unmodifiable @NotLive public Set<CredentialRecord> deserialize(long version, String context, String key, String value, Long expiration) throws IOException - Specified by:
deserializein interfaceStorageSerializer<Set<CredentialRecord>>- Throws:
IOException
-