Skip navigation links

Oracle Security Developer Tools Security Engine Java API Reference
11g (11.1.1)

E10674-02


oracle.security.crypto.cert
Class Certificate

java.lang.Object
  extended by oracle.security.crypto.cert.Certificate

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
X509

public abstract class Certificate
extends java.lang.Object
implements java.io.Externalizable

An abstract certificate class. A certificate is a binding of a public key and a holder, together with some means to verify this binding.

This is an abstract class. Subclasses need to implement the verify() methods.

See Also:
Serialized Form

Field Summary
protected  Entity holder
          The holder of the certificate.
protected  oracle.security.crypto.core.PublicKey key
          The public key associated with the certificate.

 

Constructor Summary
protected Certificate()
           

 

Method Summary
 Entity getHolder()
          Returns the holder of this certificate.
 oracle.security.crypto.core.PublicKey getPublicKey()
          Returns the public key associated with this certificate.
abstract  boolean verify()
          Verifies this certificate.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface java.io.Externalizable
readExternal, writeExternal

 

Field Detail

holder

protected Entity holder
The holder of the certificate.

key

protected oracle.security.crypto.core.PublicKey key
The public key associated with the certificate.

Constructor Detail

Certificate

protected Certificate()

Method Detail

verify

public abstract boolean verify()
                        throws oracle.security.crypto.core.AuthenticationException
Verifies this certificate. Specifically, checks that the binding of the public key to the holder is correct, according to some procedure which is particular to the implementing subclass. Typically, this means checking that the certificate has been correctly signed by an appropriate certificate authority.
Returns:
true if this certificate is valid, otherwise false
Throws:
oracle.security.crypto.core.AuthenticationException - If the verification operation could not be performed for some reason (for example, a necessary credential or token has the wrong format)

getPublicKey

public oracle.security.crypto.core.PublicKey getPublicKey()
Returns the public key associated with this certificate.
Returns:
the public key

getHolder

public Entity getHolder()
Returns the holder of this certificate.
Returns:
the holder

Skip navigation links

Oracle Security Developer Tools Security Engine Java API Reference
11g (11.1.1)

E10674-02


Copyright © 2005, 2009, Oracle. All rights reserved.