1 13 14 package org.ejbca.core.protocol; 15 16 import java.io.Serializable ; 17 import java.math.BigInteger ; 18 import java.security.InvalidKeyException ; 19 import java.security.NoSuchAlgorithmException ; 20 import java.security.NoSuchProviderException ; 21 import java.security.PrivateKey ; 22 import java.security.PublicKey ; 23 import java.security.cert.Certificate ; 24 import java.security.cert.X509Certificate ; 25 import java.util.Date ; 26 27 28 34 public interface IRequestMessage extends Serializable { 35 40 public String getUsername(); 41 42 47 public String getPassword(); 48 49 54 public String getIssuerDN(); 55 56 62 public BigInteger getSerialNo(); 63 64 69 public String getRequestDN(); 70 71 76 public String getRequestAltNames(); 77 78 85 public Date getRequestValidityNotBefore(); 86 87 94 public Date getRequestValidityNotAfter(); 95 96 101 public String getCRLIssuerDN(); 102 103 108 public BigInteger getCRLSerialNo(); 109 110 119 public PublicKey getRequestPublicKey() 120 throws InvalidKeyException , NoSuchAlgorithmException , NoSuchProviderException ; 121 122 133 public boolean verify() 134 throws InvalidKeyException , NoSuchAlgorithmException , NoSuchProviderException ; 135 136 142 public boolean requireKeyInfo(); 143 144 154 public void setKeyInfo(X509Certificate cert, PrivateKey key, String provider); 155 156 161 public int getErrorNo(); 162 163 168 public String getErrorText(); 169 170 175 public String getSenderNonce(); 176 177 182 public String getTransactionId(); 183 184 189 public byte[] getRequestKeyInfo(); 190 191 198 public String getPreferredDigestAlg(); 199 200 201 206 public boolean includeCACert(); 207 208 213 public int getRequestType(); 214 215 220 public int getRequestId(); 221 222 234 public IResponseMessage createResponseMessage(Class responseClass, IRequestMessage req, Certificate cert, PrivateKey signPriv, PrivateKey encPriv, String provider); 235 236 237 } 238 | Popular Tags |