Class AbstractCredentialRetrieval<T extends CredentialExchange>
java.lang.Object
pl.edu.icm.unity.engine.api.authn.AbstractCredentialRetrieval<T>
- All Implemented Interfaces:
CredentialRetrieval
,BindingAuthn
,StringConfigurable
public abstract class AbstractCredentialRetrieval<T extends CredentialExchange>
extends Object
implements CredentialRetrieval
Common code for all
CredentialRetrieval
implementations. Stores the exchange implementation and instance
name. Useful for all implementations supporting a single type of credential exchange
(what is by far the common case).- Author:
- K. Benedyczak
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Called when endpoint using this implementation is destroyed.void
Sets initial state, given by the framework (the retrieval's own, implementation specific configuration is set via#setSerializedConfiguration(com.fasterxml.jackson.databind.node.ObjectNode)
): the credential verificator and the configured id.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface pl.edu.icm.unity.engine.api.authn.CredentialRetrieval
requiresRedirect
Methods inherited from interface pl.edu.icm.unity.engine.api.utils.StringConfigurable
getSerializedConfiguration, setSerializedConfiguration
-
Field Details
-
credentialExchange
-
bindingName
-
-
Constructor Details
-
AbstractCredentialRetrieval
-
-
Method Details
-
getBindingName
- Specified by:
getBindingName
in interfaceBindingAuthn
- Specified by:
getBindingName
in interfaceCredentialRetrieval
- Returns:
- implementation id
-
setCredentialExchange
Description copied from interface:CredentialRetrieval
Sets initial state, given by the framework (the retrieval's own, implementation specific configuration is set via#setSerializedConfiguration(com.fasterxml.jackson.databind.node.ObjectNode)
): the credential verificator and the configured id.- Specified by:
setCredentialExchange
in interfaceCredentialRetrieval
-
getAuthenticatorId
- Specified by:
getAuthenticatorId
in interfaceBindingAuthn
- Returns:
- name of the configured authenticator instance.
-
destroy
public void destroy()Description copied from interface:BindingAuthn
Called when endpoint using this implementation is destroyed.- Specified by:
destroy
in interfaceBindingAuthn
-