org.hardtokenmgmt.core.token
Class DefaultLogonCertificateSelector

java.lang.Object
  extended by org.hardtokenmgmt.core.token.DefaultLogonCertificateSelector
All Implemented Interfaces:
ILogonCertificateSelector

public class DefaultLogonCertificateSelector
extends java.lang.Object
implements ILogonCertificateSelector

Default logon certificate selector selecting the first found certificate with 'digital signature' in the key usage and DN equal to the global setting: 'token.defaultlogoncertselector', protected by the basic pin.

Version:
$Id$
Author:
Philip Vendil 2 feb 2008

Constructor Summary
DefaultLogonCertificateSelector()
           
 
Method Summary
 java.security.cert.X509Certificate getLogonCertificate(IToken token)
          Method fetching the first certificate with 'digital signature' and the given issuer in the setting token.defaultlogoncertselector protected by the basic pin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLogonCertificateSelector

public DefaultLogonCertificateSelector()
Method Detail

getLogonCertificate

public java.security.cert.X509Certificate getLogonCertificate(IToken token)
                                                       throws iaik.pkcs.pkcs11.TokenException
Method fetching the first certificate with 'digital signature' and the given issuer in the setting token.defaultlogoncertselector protected by the basic pin. returns null if no certificate were found on the token.

Specified by:
getLogonCertificate in interface ILogonCertificateSelector
Parameters:
token - the token to check
Throws:
iaik.pkcs.pkcs11.TokenException - if unexpected error occured during communication with the token.
See Also:
ILogonCertificateSelector.getLogonCertificate(IToken)