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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Called when endpoint using this implementation is destroyed.voidSets 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, waitMethods inherited from interface pl.edu.icm.unity.engine.api.authn.CredentialRetrieval
requiresRedirectMethods 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:
getBindingNamein interfaceBindingAuthn- Specified by:
getBindingNamein interfaceCredentialRetrieval- Returns:
- implementation id
-
setCredentialExchange
Description copied from interface:CredentialRetrievalSets 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:
setCredentialExchangein interfaceCredentialRetrieval
-
getAuthenticatorId
- Specified by:
getAuthenticatorIdin interfaceBindingAuthn- Returns:
- name of the configured authenticator instance.
-
destroy
public void destroy()Description copied from interface:BindingAuthnCalled when endpoint using this implementation is destroyed.- Specified by:
destroyin interfaceBindingAuthn
-