Package org.bouncycastle.x509
Class X509CertPairStoreSelector
java.lang.Object
org.bouncycastle.x509.X509CertPairStoreSelector
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 two
X509CertStoreSelector
s which must be both
matched.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a clone of this selector.Returns the certificate pair which is used for testing on equality.Returns the certicate selector for the forward part.Returns the certicate selector for the reverse part.boolean
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)
-
Constructor Details
-
X509CertPairStoreSelector
public X509CertPairStoreSelector()
-
-
Method Details
-
getCertPair
Returns the certificate pair which is used for testing on equality.- Returns:
- Returns the certificate pair which is checked.
-
setCertPair
Set the certificate pair which is used for testing on equality.- Parameters:
certPair
- The certPairChecking to set.
-
setForwardSelector
- Parameters:
forwardSelector
- The certificate selector for the forward part in the pair.
-
setReverseSelector
- Parameters:
reverseSelector
- The certificate selector for the reverse part in the pair.
-
clone
Returns a clone of this selector. -
match
Decides if the given certificate pair should be selected. Ifobj
is not aX509CertificatePair
this method returnsfalse
.- Specified by:
match
in interfaceSelector
- Parameters:
obj
- TheX509CertificatePair
which should be tested.- Returns:
true
if the object matches this selector.
-
getForwardSelector
Returns the certicate selector for the forward part.- Returns:
- Returns the certicate selector for the forward part.
-
getReverseSelector
Returns the certicate selector for the reverse part.- Returns:
- Returns the reverse selector for teh reverse part.
-