Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jsdsi
Class CompatibleCertSelector  view CompatibleCertSelector download CompatibleCertSelector.java

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 string. That is, if the issuer is K and the string 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 $ $Date: 2003/04/22 21:37:46 $

Field Summary
(package private)  Principal issuer
          Issuer the searched certificat's subject starts with.
(package private)  java.lang.String name
          String the searched certificat's subject starts with.
 
Constructor Summary
CompatibleCertSelector(Principal i, java.lang.String n)
          Creates a new CompatibleCertSelector from a given principal and name.
 
Method Summary
 java.lang.Object clone()
          Returns a copy of this CertSelector.
 Name getFullName()
          Returns the full name that consist of the name constructed of the issuer and the name of this CompatibleCertSelector.
 Principal getIssuer()
          Returns the issuer of this CompatibleCertSelector.
 java.lang.String getName()
          Returns the name of this CompatibleCertSelector.
 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
 

Field Detail

issuer

Principal issuer
Issuer the searched certificat's subject starts with.


name

java.lang.String name
String the searched certificat's subject starts with.

Constructor Detail

CompatibleCertSelector

public CompatibleCertSelector(Principal i,
                              java.lang.String n)
Creates a new CompatibleCertSelector from a given principal and name.

Method Detail

clone

public java.lang.Object clone()
Description copied from interface: java.security.cert.CertSelector
Returns a copy of this CertSelector.

Specified by:
clone in interface java.security.cert.CertSelector
Specified by:
clone in class CertSelector

match

public boolean match(Certificate cert)
Specified by:
match in class CertSelector

getIssuer

public Principal getIssuer()
Returns the issuer of this CompatibleCertSelector.


getName

public java.lang.String getName()
Returns the name of this CompatibleCertSelector.


getFullName

public Name getFullName()
Returns the full name that consist of the name constructed of the issuer and the name of this CompatibleCertSelector.