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.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,pl.edu.icm.unity.types.DescribedObject,pl.edu.icm.unity.types.NamedObject
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 Classes Modifier and Type Class Description static classCertificateVerificator.Factory
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDESCstatic java.lang.StringNAME-
Fields inherited from class pl.edu.icm.unity.engine.api.authn.local.AbstractLocalVerificator
credentialName
-
Fields inherited from class pl.edu.icm.unity.engine.api.authn.AbstractVerificator
identityResolver, instanceName
-
Fields inherited from interface pl.edu.icm.unity.stdext.credential.cert.CertificateExchange
ID
-
-
Constructor Summary
Constructors Constructor Description CertificateVerificator(pl.edu.icm.unity.engine.api.EntityManagement idMan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pl.edu.icm.unity.engine.api.authn.AuthenticationResultcheckCertificate(java.security.cert.X509Certificate[] chain, pl.edu.icm.unity.engine.api.authn.remote.SandboxAuthnResultCallback sandboxCallback)pl.edu.icm.unity.types.authn.CredentialPublicInformationcheckCredentialState(java.lang.String currentCredential)java.lang.StringgetSerializedConfiguration()java.lang.Stringinvalidate(java.lang.String currentCredential)booleanisCredentialDefinitionChagneOutdatingCredentials(java.lang.String newCredentialDefinition)booleanisCredentialSet(pl.edu.icm.unity.types.basic.EntityParam entity)java.lang.StringprepareCredential(java.lang.String rawCredential, java.lang.String currentCredential, boolean verify)voidsetSerializedConfiguration(java.lang.String json)-
Methods inherited from class pl.edu.icm.unity.engine.api.authn.local.AbstractLocalVerificator
getCredentialName, getType, isSupportingInvalidation, setCredentialName, updateCredentialAfterConfigurationChange
-
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
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
DESC
public static final java.lang.String DESC
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSerializedConfiguration
public java.lang.String getSerializedConfiguration()
- Specified by:
getSerializedConfigurationin interfacepl.edu.icm.unity.engine.api.utils.StringConfigurable
-
setSerializedConfiguration
public void setSerializedConfiguration(java.lang.String json)
- Specified by:
setSerializedConfigurationin interfacepl.edu.icm.unity.engine.api.utils.StringConfigurable
-
prepareCredential
public java.lang.String prepareCredential(java.lang.String rawCredential, java.lang.String currentCredential, boolean verify) throws pl.edu.icm.unity.exceptions.IllegalCredentialException- Specified by:
prepareCredentialin interfacepl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator- Throws:
pl.edu.icm.unity.exceptions.IllegalCredentialException
-
checkCredentialState
public pl.edu.icm.unity.types.authn.CredentialPublicInformation checkCredentialState(java.lang.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(java.security.cert.X509Certificate[] chain, pl.edu.icm.unity.engine.api.authn.remote.SandboxAuthnResultCallback sandboxCallback)- Specified by:
checkCertificatein interfaceCertificateExchange
-
invalidate
public java.lang.String invalidate(java.lang.String currentCredential)
- Specified by:
invalidatein interfacepl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator
-
isCredentialSet
public boolean isCredentialSet(pl.edu.icm.unity.types.basic.EntityParam entity) throws pl.edu.icm.unity.exceptions.EngineException- Specified by:
isCredentialSetin interfacepl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
isCredentialDefinitionChagneOutdatingCredentials
public boolean isCredentialDefinitionChagneOutdatingCredentials(java.lang.String newCredentialDefinition)
- Specified by:
isCredentialDefinitionChagneOutdatingCredentialsin interfacepl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator
-
-