jsdsi
Class CompatibleCertSelector

java.lang.Object
  extended byjsdsi.CertSelector
      extended byjsdsi.CompatibleCertSelector
All Implemented Interfaces:
java.security.cert.CertSelector, java.lang.Cloneable

public class CompatibleCertSelector
extends CertSelector

Selects all certificates whose subject is a name that starts with the specified issuer and local name. That is, if the issuer is K and the local name is S, this selects all certificates of the form (LHS -> "K S ..."), where LHS is the left-hand-side of the certificate and "K S ..." is a name.

Version:
$Revision: 1.2.6.1 $ $Date: 2005/11/08 03:12:52 $
Author:
Sameer Ajmani

Constructor Summary
CompatibleCertSelector(Principal i, java.lang.String n)
          Creates a new CompatibleCertSelector that matches certificates whose subject is a name issued by i whose first local name is n.
 
Method Summary
 java.lang.Object clone()
           
 Name getFullName()
           
 Principal getIssuer()
           
 java.lang.String getName()
           
 boolean match(Certificate cert)
           
 
Methods inherited from class jsdsi.CertSelector
match
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompatibleCertSelector

public CompatibleCertSelector(Principal i,
                              java.lang.String n)
Creates a new CompatibleCertSelector that matches certificates whose subject is a name issued by i whose first local name is n.

Method Detail

clone

public java.lang.Object clone()
Specified by:
clone in interface java.security.cert.CertSelector
Specified by:
clone in class CertSelector
See Also:
Object.clone()

match

public boolean match(Certificate cert)
Specified by:
match in class CertSelector
Returns:
true if cert.subject is a Name whose issuer is the same principal as this.issuer and whose first local name is this.name.
See Also:
CertSelector.match(Certificate)

getIssuer

public Principal getIssuer()
Returns:
the issuer matched by this selector.

getName

public java.lang.String getName()
Returns:
the local name matched by this selector.

getFullName

public Name getFullName()
Returns:
the fully-qualified name matched by this selector.


Copyright © 2002-2006 JSDSI. All Rights Reserved.