public class X509CertPairStoreSelector extends java.lang.Object implements Selector
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.X509AttributeCertificate
,
X509Store
Constructor and Description |
---|
X509CertPairStoreSelector() |
Modifier and Type | Method and 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) |
public X509CertificatePair getCertPair()
public void setCertPair(X509CertificatePair certPair)
certPair
- The certPairChecking to set.public void setForwardSelector(X509CertStoreSelector forwardSelector)
forwardSelector
- The certificate selector for the forward part in
the pair.public void setReverseSelector(X509CertStoreSelector reverseSelector)
reverseSelector
- The certificate selector for the reverse part in
the pair.public java.lang.Object clone()
public boolean match(java.lang.Object obj)
obj
is not a X509CertificatePair
this method
returns false
.match
in interface Selector
obj
- The X509CertificatePair
which should be tested.true
if the object matches this selector.public X509CertStoreSelector getForwardSelector()
public X509CertStoreSelector getReverseSelector()