KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > ui > web > protocol > CardKeys


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13 package org.ejbca.ui.web.protocol;
14
15 import java.security.PrivateKey JavaDoc;
16 import java.security.interfaces.RSAPublicKey JavaDoc;
17
18 /**
19  * @author lars
20  * @version $Id: CardKeys.java,v 1.5 2006/09/07 10:00:08 anatom Exp $
21  */

22 public interface CardKeys {
23
24     /**
25      * @param publicKey
26      * @return
27      * @throws Exception
28      */

29     PrivateKey JavaDoc getPrivateKey(RSAPublicKey JavaDoc publicKey) throws Exception JavaDoc;
30     /**
31      * @param authCode
32      * @throws InterruptedException
33      */

34     void autenticate( String JavaDoc authCode) throws InterruptedException JavaDoc;
35     /**
36      * Check if key is OK (verifies PIN).
37      * @param publicKey
38      * @return
39      */

40     boolean isOK(RSAPublicKey JavaDoc publicKey);
41 }
42
Popular Tags