Oracle Security Developer Tools Security Engine Java API Reference
10g (10.1.4.0.1)

B28175-01


oracle.security.crypto.cert
Class Certificate

java.lang.Object
  extended byoracle.security.crypto.cert.Certificate

Direct Known Subclasses:
X509

public abstract class Certificate
extends java.lang.Object

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.


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 getKey()
          Deprecated. Replaced by getPublicKey().
 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

 

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)

getKey

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

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

Oracle Security Developer Tools Security Engine Java API Reference
10g (10.1.4.0.1)

B28175-01


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