Class AbstractLocalVerificator
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.AbstractVerificator
-
- pl.edu.icm.unity.engine.api.authn.local.AbstractLocalVerificator
-
- All Implemented Interfaces:
CredentialExchange
,CredentialVerificator
,LocalCredentialVerificator
,StringConfigurable
,pl.edu.icm.unity.types.DescribedObject
,pl.edu.icm.unity.types.NamedObject
public abstract class AbstractLocalVerificator extends AbstractVerificator implements LocalCredentialVerificator
AbstractLocalCredentialVerificator
with a common boilerplate code.- Author:
- K. Benedyczak
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface pl.edu.icm.unity.engine.api.authn.CredentialVerificator
CredentialVerificator.VerificatorType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
credentialName
-
Fields inherited from class pl.edu.icm.unity.engine.api.authn.AbstractVerificator
identityResolver, instanceName
-
-
Constructor Summary
Constructors Constructor Description AbstractLocalVerificator(java.lang.String name, java.lang.String description, java.lang.String exchangeId, boolean supportingInvalidation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCredentialName()
CredentialVerificator.VerificatorType
getType()
boolean
isSupportingInvalidation()
void
setCredentialName(java.lang.String credentialName)
Sets credential definition name for this verificator.void
setSupportingInvalidation(boolean supportingInvalidation)
java.util.Optional<java.lang.String>
updateCredentialAfterConfigurationChange(java.lang.String currentCredential)
Returns optionally changed argument credential, which can be transformed after the change of configuration.-
Methods inherited from class pl.edu.icm.unity.engine.api.authn.AbstractVerificator
getDescription, getExchangeId, getName, setIdentityResolver, setInstanceName
-
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.CredentialExchange
getExchangeId
-
Methods inherited from interface pl.edu.icm.unity.engine.api.authn.CredentialVerificator
setIdentityResolver, setInstanceName
-
Methods inherited from interface pl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator
checkCredentialState, invalidate, isCredentialDefinitionChagneOutdatingCredentials, isCredentialSet, prepareCredential
-
Methods inherited from interface pl.edu.icm.unity.engine.api.utils.StringConfigurable
getSerializedConfiguration, setSerializedConfiguration
-
-
-
-
Method Detail
-
getCredentialName
public java.lang.String getCredentialName()
- Specified by:
getCredentialName
in interfaceLocalCredentialVerificator
- Returns:
- the name of the credential definition associated with this verificator
-
setCredentialName
public void setCredentialName(java.lang.String credentialName)
Description copied from interface:LocalCredentialVerificator
Sets credential definition name for this verificator. This is only required to perform resolving of the client's identity, to get a proper credential. It is irrelevant for credential's storage.- Specified by:
setCredentialName
in interfaceLocalCredentialVerificator
-
isSupportingInvalidation
public boolean isSupportingInvalidation()
- Specified by:
isSupportingInvalidation
in interfaceLocalCredentialVerificator
- Returns:
- If the instances can be put into the
LocalCredentialState.outdated
state.
-
setSupportingInvalidation
public void setSupportingInvalidation(boolean supportingInvalidation)
-
getType
public CredentialVerificator.VerificatorType getType()
- Specified by:
getType
in interfaceCredentialVerificator
- Returns:
- verificator type
-
updateCredentialAfterConfigurationChange
public java.util.Optional<java.lang.String> updateCredentialAfterConfigurationChange(java.lang.String currentCredential)
Description copied from interface:LocalCredentialVerificator
Returns optionally changed argument credential, which can be transformed after the change of configuration. It can be assumed that argument credential was created with some old configuration and that the current object is configured with the new one.- Specified by:
updateCredentialAfterConfigurationChange
in interfaceLocalCredentialVerificator
-
-