Class CertificateVerificator
java.lang.Object
pl.edu.icm.unity.engine.api.authn.AbstractVerificator
pl.edu.icm.unity.engine.api.authn.local.AbstractLocalVerificator
pl.edu.icm.unity.stdext.credential.cert.CertificateVerificator
- All Implemented Interfaces:
pl.edu.icm.unity.base.describedObject.DescribedObject,pl.edu.icm.unity.base.describedObject.NamedObject,pl.edu.icm.unity.engine.api.authn.CredentialExchange,pl.edu.icm.unity.engine.api.authn.CredentialVerificator,pl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator,pl.edu.icm.unity.engine.api.utils.StringConfigurable,CertificateExchange
public class CertificateVerificator
extends pl.edu.icm.unity.engine.api.authn.local.AbstractLocalVerificator
implements CertificateExchange
Trivial verificator of certificates. It is assumed that the certificate was previously authenticated.
Therefore the only operation is resolving of the certificate user.
There is no local credential associated with this verificator. Therefore it always returns the correct credential state. Storing credential of this type makes no sense, but works (empty string is stored).
- Author:
- K. Benedyczak
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface pl.edu.icm.unity.engine.api.authn.CredentialVerificator
pl.edu.icm.unity.engine.api.authn.CredentialVerificator.VerificatorType -
Field Summary
FieldsFields inherited from class pl.edu.icm.unity.engine.api.authn.local.AbstractLocalVerificator
credentialNameFields inherited from class pl.edu.icm.unity.engine.api.authn.AbstractVerificator
identityResolver, instanceNameFields inherited from interface pl.edu.icm.unity.stdext.credential.cert.CertificateExchange
ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpl.edu.icm.unity.engine.api.authn.AuthenticationResultcheckCertificate(X509Certificate[] chain, String formForUnknown, boolean enableAssociation, pl.edu.icm.unity.engine.api.authn.remote.AuthenticationTriggeringContext triggeringContext) pl.edu.icm.unity.base.authn.CredentialPublicInformationcheckCredentialState(String currentCredential) pl.edu.icm.unity.base.authn.AuthenticationMethodinvalidate(String currentCredential) booleanisCredentialDefinitionChagneOutdatingCredentials(String newCredentialDefinition) booleanisCredentialSet(pl.edu.icm.unity.base.entity.EntityParam entity) prepareCredential(String rawCredential, String currentCredential, boolean verify) voidMethods inherited from class pl.edu.icm.unity.engine.api.authn.local.AbstractLocalVerificator
getCredentialName, getType, isSupportingInvalidation, setCredentialName, updateCredentialAfterConfigurationChangeMethods inherited from class pl.edu.icm.unity.engine.api.authn.AbstractVerificator
getDescription, getExchangeId, getName, setIdentityResolver, setInstanceNameMethods 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.CredentialExchange
getExchangeIdMethods inherited from interface pl.edu.icm.unity.engine.api.authn.CredentialVerificator
setIdentityResolver, setInstanceNameMethods inherited from interface pl.edu.icm.unity.base.describedObject.DescribedObject
getDescriptionMethods inherited from interface pl.edu.icm.unity.base.describedObject.NamedObject
getName
-
Field Details
-
NAME
- See Also:
-
DESC
- See Also:
-
-
Constructor Details
-
CertificateVerificator
@Autowired public CertificateVerificator(@Qualifier("insecure") pl.edu.icm.unity.engine.api.EntityManagement idMan)
-
-
Method Details
-
getSerializedConfiguration
- Specified by:
getSerializedConfigurationin interfacepl.edu.icm.unity.engine.api.utils.StringConfigurable
-
setSerializedConfiguration
- Specified by:
setSerializedConfigurationin interfacepl.edu.icm.unity.engine.api.utils.StringConfigurable
-
prepareCredential
public String prepareCredential(String rawCredential, String currentCredential, boolean verify) throws pl.edu.icm.unity.engine.api.authn.IllegalCredentialException - Specified by:
prepareCredentialin interfacepl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator- Throws:
pl.edu.icm.unity.engine.api.authn.IllegalCredentialException
-
checkCredentialState
public pl.edu.icm.unity.base.authn.CredentialPublicInformation checkCredentialState(String currentCredential) - Specified by:
checkCredentialStatein interfacepl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator
-
checkCertificate
public pl.edu.icm.unity.engine.api.authn.AuthenticationResult checkCertificate(X509Certificate[] chain, String formForUnknown, boolean enableAssociation, pl.edu.icm.unity.engine.api.authn.remote.AuthenticationTriggeringContext triggeringContext) - Specified by:
checkCertificatein interfaceCertificateExchange
-
invalidate
- Specified by:
invalidatein interfacepl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator
-
isCredentialSet
public boolean isCredentialSet(pl.edu.icm.unity.base.entity.EntityParam entity) throws pl.edu.icm.unity.base.exceptions.EngineException - Specified by:
isCredentialSetin interfacepl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
isCredentialDefinitionChagneOutdatingCredentials
- Specified by:
isCredentialDefinitionChagneOutdatingCredentialsin interfacepl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator
-
getAuthenticationMethod
public pl.edu.icm.unity.base.authn.AuthenticationMethod getAuthenticationMethod()- Specified by:
getAuthenticationMethodin interfacepl.edu.icm.unity.engine.api.authn.CredentialVerificator
-