Package org.bouncycastle.x509
Class X509CertPairStoreSelector
- java.lang.Object
-
- org.bouncycastle.x509.X509CertPairStoreSelector
-
- All Implemented Interfaces:
java.lang.Cloneable
,Selector
public class X509CertPairStoreSelector extends java.lang.Object implements Selector
This class is an Selector like implementation to select certificates pairs, which are e.g. used for cross certificates. The set of criteria is given from twoX509CertStoreSelector
s which must be both matched.- See Also:
X509AttributeCertificate
,X509Store
-
-
Constructor Summary
Constructors Constructor Description X509CertPairStoreSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Returns a clone of this selector.X509CertificatePair
getCertPair()
Returns the certificate pair which is used for testing on equality.X509CertStoreSelector
getForwardSelector()
Returns the certicate selector for the forward part.X509CertStoreSelector
getReverseSelector()
Returns the certicate selector for the reverse part.boolean
match(java.lang.Object obj)
Decides if the given certificate pair should be selected.void
setCertPair(X509CertificatePair certPair)
Set the certificate pair which is used for testing on equality.void
setForwardSelector(X509CertStoreSelector forwardSelector)
void
setReverseSelector(X509CertStoreSelector reverseSelector)
-
-
-
Method Detail
-
getCertPair
public X509CertificatePair getCertPair()
Returns the certificate pair which is used for testing on equality.- Returns:
- Returns the certificate pair which is checked.
-
setCertPair
public void setCertPair(X509CertificatePair certPair)
Set the certificate pair which is used for testing on equality.- Parameters:
certPair
- The certPairChecking to set.
-
setForwardSelector
public void setForwardSelector(X509CertStoreSelector forwardSelector)
- Parameters:
forwardSelector
- The certificate selector for the forward part in the pair.
-
setReverseSelector
public void setReverseSelector(X509CertStoreSelector reverseSelector)
- Parameters:
reverseSelector
- The certificate selector for the reverse part in the pair.
-
clone
public java.lang.Object clone()
Returns a clone of this selector.
-
match
public boolean match(java.lang.Object obj)
Decides if the given certificate pair should be selected. If obj is not aX509CertificatePair
this method returns false.- Specified by:
match
in interfaceSelector
- Parameters:
obj
- TheX509CertificatePair
which should be tested.- Returns:
- true if the object matches this selector.
-
getForwardSelector
public X509CertStoreSelector getForwardSelector()
Returns the certicate selector for the forward part.- Returns:
- Returns the certicate selector for the forward part.
-
getReverseSelector
public X509CertStoreSelector getReverseSelector()
Returns the certicate selector for the reverse part.- Returns:
- Returns the reverse selector for teh reverse part.
-
-