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 allCredentialRetrievalimplementations. 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 Modifier and Type Field Description protected StringbindingNameprotected TcredentialExchange
-
Constructor Summary
Constructors Constructor Description AbstractCredentialRetrieval(String bindingName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Called when endpoint using this implementation is destroyed.StringgetAuthenticatorId()StringgetBindingName()voidsetCredentialExchange(CredentialExchange e, String id)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 Detail
-
credentialExchange
protected T extends CredentialExchange credentialExchange
-
bindingName
protected final String bindingName
-
-
Constructor Detail
-
AbstractCredentialRetrieval
public AbstractCredentialRetrieval(String bindingName)
-
-
Method Detail
-
getBindingName
public String getBindingName()
- Specified by:
getBindingNamein interfaceBindingAuthn- Specified by:
getBindingNamein interfaceCredentialRetrieval- Returns:
- implementation id
-
setCredentialExchange
public void setCredentialExchange(CredentialExchange e, String id)
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
public String 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
-
-