1 7 8 15 16 package javax.security.cert; 17 18 import java.security.PublicKey; 19 import java.security.NoSuchAlgorithmException; 20 import java.security.NoSuchProviderException; 21 import java.security.InvalidKeyException; 22 import java.security.SignatureException; 23 24 53 public abstract class Certificate 54 { 55 56 public Certificate() { } 57 58 69 public boolean equals(Object other) { 70 return false; 71 } 72 73 79 public int hashCode() { 80 return 0; 81 } 82 83 93 public abstract byte[] getEncoded() throws CertificateEncodingException; 94 95 108 public abstract void verify(PublicKey key) 109 throws CertificateException, NoSuchAlgorithmException, 110 InvalidKeyException, NoSuchProviderException, SignatureException; 111 112 126 public abstract void verify(PublicKey key, String sigProvider) 127 throws CertificateException, NoSuchAlgorithmException, 128 InvalidKeyException, NoSuchProviderException, SignatureException; 129 130 135 public abstract String toString(); 136 137 142 public abstract PublicKey getPublicKey(); 143 } 144 | Popular Tags |