1 13 14 package org.ejbca.core.model.ca.catoken; 15 16 import java.security.PrivateKey ; 17 import java.security.PublicKey ; 18 import java.util.Properties ; 19 20 21 22 23 29 public interface IHardCAToken { 30 31 public static final int STATUS_ACTIVE = 1; 32 public static final int STATUS_OFFLINE = 2; 33 34 38 public abstract void init(Properties properties, String signaturealgorithm); 39 40 45 public abstract int getCATokenStatus(); 46 47 54 public abstract void activate(String authenticationcode) throws CATokenAuthenticationFailedException, CATokenOfflineException; 55 56 62 public abstract boolean deactivate(); 63 64 70 public abstract PrivateKey getPrivateKey(int purpose) throws CATokenOfflineException; 71 72 78 public abstract PublicKey getPublicKey(int purpose) throws CATokenOfflineException; 79 80 81 85 public abstract String getProvider(); 86 87 88 } 89 | Popular Tags |