public class DigitalIdentitiesProcessor
extends java.lang.Object
Class that represents a Digital Identities Processor.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Constructor and Description |
|---|
DigitalIdentitiesProcessor()
Constructor method for the class DigitalIdentitiesProcessor.java.
|
DigitalIdentitiesProcessor(java.util.List<DigitalID> digitalIdentitiesList)
Constructor method for the class DigitalIdentitiesProcessor.java.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIfCertificateIsIssuedBySomeIdentity(java.security.cert.X509Certificate cert,
TSLValidatorResult validationResult)
Checks if the input certificate is issued by some of the identities and sets its in the result.
|
boolean |
checkIfDigitalIdentitiesMatchesCertificate(java.security.cert.X509Certificate cert)
Checks if the input certificate is some of the identities and sets its in the result.
|
java.util.List<java.security.cert.X509Certificate> |
getX509certList()
Gets the value of the attribute
x509certList. |
java.util.List<java.security.PublicKey> |
getX509publicKeysList()
Gets the value of the attribute
x509publicKeysList. |
java.util.List<byte[]> |
getX509ski()
Gets the value of the attribute
x509ski. |
java.util.List<java.lang.String> |
getX509SubjectNameList()
Gets the value of the attribute
x509SubjectNameList. |
boolean |
isThereSomeDigitalIdentity()
Checks if there is some digital identity.
|
boolean |
isThereSomeX509CertificateDigitalIdentity()
Checks if there is some X509 Certificate Digital Identity.
|
boolean |
isThereSomeX509PublicKeyDigitalIdentity()
Checks if there is some X509 Public Key Digital Identity.
|
boolean |
isThereSomeX509skiDigitalIdentity()
Checks if there is some X509 Subject Key Identifier Digital Identity.
|
boolean |
isThereSomeX509SubjectNameDigitalIdentity()
Checks if there is some X509 Subject Name Digital Identity.
|
public DigitalIdentitiesProcessor()
public DigitalIdentitiesProcessor(java.util.List<DigitalID> digitalIdentitiesList)
digitalIdentitiesList - List of Digital Identities to process.public final java.util.List<java.security.cert.X509Certificate> getX509certList()
x509certList.x509certList.public final boolean isThereSomeX509CertificateDigitalIdentity()
true if there is at least one X509 Certificate Digital Identity,
otherwise false.public final java.util.List<java.lang.String> getX509SubjectNameList()
x509SubjectNameList.x509SubjectNameList.public final boolean isThereSomeX509SubjectNameDigitalIdentity()
true if there is at least one X509 Subject Name Digital Identity,
otherwise false.public final java.util.List<java.security.PublicKey> getX509publicKeysList()
x509publicKeysList.x509publicKeysList.public final boolean isThereSomeX509PublicKeyDigitalIdentity()
true if there is at least one X509 Public Key Digital Identity,
otherwise false.public final java.util.List<byte[]> getX509ski()
x509ski.x509ski.public final boolean isThereSomeX509skiDigitalIdentity()
true if there is at least one X509 Subject Key Identifier Digital Identity,
otherwise false.public final boolean isThereSomeDigitalIdentity()
true if there is some type of digital identity, otherwise false.public final boolean checkIfCertificateIsIssuedBySomeIdentity(java.security.cert.X509Certificate cert,
TSLValidatorResult validationResult)
cert - X509v3 certificate to check.validationResult - Object where is stored the validation result data.true if the certificate is issued by some of the input identities, otherwise false.public final boolean checkIfDigitalIdentitiesMatchesCertificate(java.security.cert.X509Certificate cert)
cert - X509v3 certificate to check.true if the certificate is some of the identities, otherwise false.