1 13 14 package org.ejbca.core.model.ca.catoken; 15 16 import java.security.PrivateKey ; 17 import java.security.PublicKey ; 18 19 import org.ejbca.core.model.UpgradeableDataHashMap; 20 21 22 23 27 public abstract class CAToken extends UpgradeableDataHashMap implements java.io.Serializable { 28 29 public static final String CATOKENTYPE = "catokentype"; 30 31 protected static final String SIGNATUREALGORITHM = "signaturealgorithm"; 32 protected static final String ENCRYPTIONALGORITHM = "encryptionalgorithm"; 33 36 public abstract CATokenInfo getCATokenInfo(); 37 38 41 public abstract void updateCATokenInfo(CATokenInfo catokeninfo); 42 43 50 public abstract void activate(String authenticationcode) throws CATokenAuthenticationFailedException, CATokenOfflineException; 51 52 58 public abstract boolean deactivate(); 59 60 61 67 public abstract PrivateKey getPrivateKey(int purpose) throws CATokenOfflineException; 68 69 75 public abstract PublicKey getPublicKey(int purpose) throws CATokenOfflineException; 76 77 78 79 83 public abstract String getProvider(); 84 85 86 } 87 | Popular Tags |