jsdsi
Class NameCertSelector

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

public class NameCertSelector
extends CertSelector

Selects all name certificates issued by a specific principal to define a specific local name.

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

Constructor Summary
NameCertSelector(Principal i, java.lang.String n)
          Creates a new NameCertSelector that matches certificates issued by i for the local name 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

NameCertSelector

public NameCertSelector(Principal i,
                        java.lang.String n)
Creates a new NameCertSelector that matches certificates issued by i for the local name 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.issuer is the same principal as this.issuer and if cert defined the local name 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 local name matched by this selector


Copyright © 2002-2006 JSDSI. All Rights Reserved.