java.security.cert
Class X509CRLSelector
- Cloneable, CRLSelector
X509CRLSelector() - Creates a new CRL selector with no criteria enabled; i.e., every CRL
will be matched.
|
void | addIssuerName(byte[] name) - Add an issuer name to the set of issuer names criteria, as the DER
encoded form.
|
void | addIssuerName(String name) - Add an issuer name to the set of issuer names criteria, as a
String representation.
|
Object | clone() - Returns a copy of this object.
|
X509Certificate | getCertificateChecking() - Returns the certificate being checked, or
null if this
value is not set.
|
Date | getDateAndTime() - Returns the date when this CRL must be valid; that is, the date
must be after the thisUpdate date, but before the nextUpdate date.
|
Collection | getIssuerNames() - Returns the set of issuer names that are matched by this selector,
or
null if this criteria is not set.
|
BigInteger | getMaxCRL() - Returns the maximum value of the CRLNumber extension present in
CRLs matched by this selector, or
null if this
criteria is not set.
|
BigInteger | getMinCRL() - Returns the minimum value of the CRLNumber extension present in
CRLs matched by this selector, or
null if this
criteria is not set.
|
boolean | match(CRL _crl) - Checks a CRL against the criteria of this selector, returning
true if the given CRL matches all the criteria.
|
void | setCertificateChecking(X509Certificate cert) - Sets the certificate being checked.
|
void | setDateAndTime(Date date) - Sets the date at which this CRL must be valid.
|
void | setIssuerNames(Collection names) - Sets the issuer names criterion.
|
void | setMaxCRLNumber(BigInteger maxCrlNumber) - Sets the maximum value of the CRLNumber extension present in CRLs
matched by this selector.
|
void | setMinCRLNumber(BigInteger minCrlNumber) - Sets the minimum value of the CRLNumber extension present in CRLs
matched by this selector.
|
String | toString() - Returns a string representation of this selector.
|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
X509CRLSelector
public X509CRLSelector()
Creates a new CRL selector with no criteria enabled; i.e., every CRL
will be matched.
addIssuerName
public void addIssuerName(byte[] name)
throws IOException
Add an issuer name to the set of issuer names criteria, as the DER
encoded form.
name
- The name to add, as DER bytes.
IOException
- If the argument is not a valid DER-encoding.
addIssuerName
public void addIssuerName(String name)
throws IOException
Add an issuer name to the set of issuer names criteria, as a
String representation.
getDateAndTime
public Date getDateAndTime()
Returns the date when this CRL must be valid; that is, the date
must be after the thisUpdate date, but before the nextUpdate date.
Returns null
if this criterion is not set.
getIssuerNames
public Collection getIssuerNames()
Returns the set of issuer names that are matched by this selector,
or null
if this criteria is not set. The returned
collection is not modifiable.
getMaxCRL
public BigInteger getMaxCRL()
Returns the maximum value of the CRLNumber extension present in
CRLs matched by this selector, or null
if this
criteria is not set.
getMinCRL
public BigInteger getMinCRL()
Returns the minimum value of the CRLNumber extension present in
CRLs matched by this selector, or null
if this
criteria is not set.
match
public boolean match(CRL _crl)
Checks a CRL against the criteria of this selector, returning
true
if the given CRL matches all the criteria.
- match in interface CRLSelector
_crl
- The CRL being checked.
- True if the CRL matches, false otherwise.
setCertificateChecking
public void setCertificateChecking(X509Certificate cert)
Sets the certificate being checked. This is not a criterion, but
info used by certificate store implementations to aid in searching.
setDateAndTime
public void setDateAndTime(Date date)
Sets the date at which this CRL must be valid. Specify
null
to clear this criterion.
setIssuerNames
public void setIssuerNames(Collection names)
throws IOException
Sets the issuer names criterion. Pass null
to clear this
value. CRLs matched by this selector must have an issuer name in this
set.
names
- The issuer names.
IOException
- If any of the elements in the collection is not
a valid name.
setMaxCRLNumber
public void setMaxCRLNumber(BigInteger maxCrlNumber)
Sets the maximum value of the CRLNumber extension present in CRLs
matched by this selector. Specify null
to clear this
criterion.
maxCrlNumber
- The maximum CRL number.
setMinCRLNumber
public void setMinCRLNumber(BigInteger minCrlNumber)
Sets the minimum value of the CRLNumber extension present in CRLs
matched by this selector. Specify null
to clear this
criterion.
minCrlNumber
- The minimum CRL number.
toString
public String toString()
Returns a string representation of this selector. The string will
only describe the enabled criteria, so if none are enabled this will
return a string that contains little else besides the class name.
- toString in interface Object
X509CRLSelector.java -- selects X.509 CRLs by criteria.
Copyright (C) 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.