Class X509CertificateHolderSelector
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.util.Selector,java.lang.Cloneable
public class X509CertificateHolderSelector implements Selector<T>
a basic index for a X509CertificateHolder class
-
-
Field Summary
Fields Modifier and Type Field Description public X500Nameissuerpublic BigIntegerserialNumber
-
Constructor Summary
Constructors Constructor Description X509CertificateHolderSelector(Array<byte> subjectKeyId)Construct a selector with the value of a public key's subjectKeyId. X509CertificateHolderSelector(X500Name issuer, BigInteger serialNumber)Construct a signer ID based on the issuer and serial number of the signer's associated certificate. X509CertificateHolderSelector(X500Name issuer, BigInteger serialNumber, Array<byte> subjectKeyId)Construct a signer ID based on the issuer and serial number of the signer's associated certificate.
-
Method Summary
Modifier and Type Method Description X500NamegetIssuer()BigIntegergetSerialNumber()Array<byte>getSubjectKeyIdentifier()inthashCode()booleanequals(Object o)booleanmatch(Object obj)Match the passed in object, returning true if it would be selected by this selector, false otherwise. Objectclone()-
-
Constructor Detail
-
X509CertificateHolderSelector
X509CertificateHolderSelector(Array<byte> subjectKeyId)
Construct a selector with the value of a public key's subjectKeyId.- Parameters:
subjectKeyId- a subjectKeyId
-
X509CertificateHolderSelector
X509CertificateHolderSelector(X500Name issuer, BigInteger serialNumber)
Construct a signer ID based on the issuer and serial number of the signer's associated certificate.- Parameters:
issuer- the issuer of the signer's associated certificate.serialNumber- the serial number of the signer's associated certificate.
-
X509CertificateHolderSelector
X509CertificateHolderSelector(X500Name issuer, BigInteger serialNumber, Array<byte> subjectKeyId)
Construct a signer ID based on the issuer and serial number of the signer's associated certificate.- Parameters:
issuer- the issuer of the signer's associated certificate.serialNumber- the serial number of the signer's associated certificate.subjectKeyId- the subject key identifier to use to match the signers associated certificate.
-
-
Method Detail
-
getSerialNumber
BigInteger getSerialNumber()
-
getSubjectKeyIdentifier
Array<byte> getSubjectKeyIdentifier()
-
hashCode
int hashCode()
-
match
boolean match(Object obj)
Match the passed in object, returning true if it would be selected by this selector, false otherwise.
- Parameters:
obj- the object to be matched.- Returns:
true if the object is a match for this selector, false otherwise.
-
-
-
-