jsdsi
Class AuthCertSelector

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

public class AuthCertSelector
extends CertSelector

Selects all authorization certificates issued by a specific principal that grant an authorization at least as strong as a specified authorization.

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

Constructor Summary
AuthCertSelector(Principal i)
          Creates an AuthCertSelector that matches all auth certs issued by i.
AuthCertSelector(Principal i, Auth a)
          Creates an AuthCertSelector that matches these auth certs issued by i that grant an authorization no weaker than a
 
Method Summary
 java.lang.Object clone()
           
 Auth getAuth()
           
 Principal getIssuer()
           
 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

AuthCertSelector

public AuthCertSelector(Principal i)
Creates an AuthCertSelector that matches all auth certs issued by i.

Parameters:
i - the issuer to match

AuthCertSelector

public AuthCertSelector(Principal i,
                        Auth a)
Creates an AuthCertSelector that matches these auth certs issued by i that grant an authorization no weaker than a

Parameters:
i - the issuer to match
a - the weakest auth to match
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's issuer is the same principal as this.issuer, and if cert's auth implies this.auth.
See Also:
CertSelector.match(Certificate)

getIssuer

public Principal getIssuer()
Returns:
issuer

getAuth

public Auth getAuth()
Returns:
auth


Copyright © 2002-2006 JSDSI. All Rights Reserved.