Build 1.0_r1(from source)

javax.security.cert
Class Certificate

java.lang.Object
  extended by javax.security.cert.Certificate
Direct Known Subclasses:
X509Certificate

public abstract class Certificate
extends Object


Constructor Summary
Certificate()
           
 
Method Summary
 boolean equals(Object obj)
          Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
abstract  byte[] getEncoded()
           
abstract  PublicKey getPublicKey()
           
 int hashCode()
          Returns an integer hash code for the receiver.
abstract  String toString()
          Returns a string containing a concise, human-readable description of the receiver.
abstract  void verify(PublicKey key)
           
abstract  void verify(PublicKey key, String sigProvider)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Certificate

public Certificate()
Method Detail

equals

public boolean equals(Object obj)
Description copied from class: Object
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. The implementation in Object returns true only if the argument is the exact same object as the receiver (==).

Overrides:
equals in class Object
Parameters:
obj - Object the object to compare with this object.
Returns:
boolean true if the object is the same as this object false if it is different from this object.
See Also:
Object.hashCode()

hashCode

public int hashCode()
Description copied from class: Object
Returns an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.

Overrides:
hashCode in class Object
Returns:
int the receiver's hash.
See Also:
Object.equals(java.lang.Object)

getEncoded

public abstract byte[] getEncoded()
                           throws CertificateEncodingException
Throws:
CertificateEncodingException

verify

public abstract void verify(PublicKey key)
                     throws CertificateException,
                            NoSuchAlgorithmException,
                            InvalidKeyException,
                            NoSuchProviderException,
                            SignatureException
Throws:
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException

verify

public abstract void verify(PublicKey key,
                            String sigProvider)
                     throws CertificateException,
                            NoSuchAlgorithmException,
                            InvalidKeyException,
                            NoSuchProviderException,
                            SignatureException
Throws:
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException

toString

public abstract String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

getPublicKey

public abstract PublicKey getPublicKey()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature