1 18 package org.apache.geronimo.management.geronimo; 19 20 import java.math.BigInteger ; 21 import java.security.PublicKey ; 22 import java.security.cert.Certificate ; 23 import java.util.Date ; 24 25 import javax.security.auth.x500.X500Principal ; 26 27 import org.apache.geronimo.management.geronimo.CertificationAuthorityException; 28 29 34 public interface CertificationAuthority { 35 36 40 public abstract boolean isLocked(); 41 42 45 public abstract void lock(); 46 47 51 public abstract void unlock(char[] password) throws CertificationAuthorityException; 52 53 57 public abstract X500Principal getName() throws CertificationAuthorityException; 58 59 63 public abstract Certificate getCertificate() throws CertificationAuthorityException; 64 65 74 public abstract void issueOwnCertificate(BigInteger sNo, Date validFromDate, Date validToDate, String algorithm) throws CertificationAuthorityException; 75 76 87 public abstract Certificate issueCertificate(X500Principal subject, PublicKey publicKey, BigInteger sNo, Date validFromDate, Date validToDate, String algorithm) throws CertificationAuthorityException; 88 89 92 public abstract BigInteger getHighestSerialNumber() throws CertificationAuthorityException; 93 94 99 public abstract boolean isCertificateIssued(BigInteger sNo) throws CertificationAuthorityException; 100 101 105 public abstract BigInteger getNextSerialNumber() throws CertificationAuthorityException; 106 107 112 public abstract Certificate getCertificate(BigInteger sNo) throws CertificationAuthorityException; 113 114 119 public abstract String getCertificateBase64Text(BigInteger sNo) throws CertificationAuthorityException; 120 } 121 | Popular Tags |