fi.hut.tcm.spki
Class SPKICertificate

java.lang.Object
  |
  +--java.security.cert.Certificate
        |
        +--fi.hut.tcm.spki.SPKICertificate
Direct Known Subclasses:
SpkiCert

public abstract class SPKICertificate
extends java.security.cert.Certificate
implements java.io.Serializable

SPKICertificate The abstract superclass for all SPKI certificates.

See Also:
Serialized Form

Fields inherited from class java.security.cert.Certificate
type
 
Constructor Summary
protected SPKICertificate()
           
 
Method Summary
abstract  ByteString getCertDisplay()
          Gets the display hint for how the SPKI certificate is best displayed.
abstract  ByteString getComment()
           
abstract  boolean getDeleg()
           
abstract  java.security.PublicKey getIssuer()
           
abstract  java.net.URL[] getIssuerInfo()
           
abstract  java.lang.Object getSubject()
           
abstract  java.net.URL[] getSubjectInfo()
           
abstract  Tag getTag()
           
abstract  Validity getValidity()
           
abstract  int getVersion()
          Returns the certificate version number.
abstract  boolean isValid()
           
protected abstract  void putCertDisplay(ByteString certDisplay)
          Sets a display hint for how the SPKI certificate is best displayed.
protected abstract  void putComment(ByteString comment)
           
protected abstract  void putDeleg(boolean deleg)
           
protected abstract  void putIssuer(java.security.PublicKey issuer)
           
protected abstract  void putIssuerInfo(java.net.URL[] info)
           
protected abstract  void putSubject(java.lang.Object subject)
           
protected abstract  void putSubjectInfo(java.net.URL[] info)
           
protected abstract  void putTag(Tag tag)
           
protected abstract  void putValidity(Validity valid)
           
private  void readObject(java.io.ObjectInputStream in)
           
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.security.cert.Certificate
equals, getEncoded, getPublicKey, getType, hashCode, toString, verify, verify
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

SPKICertificate

protected SPKICertificate()
Method Detail

getVersion

public abstract int getVersion()
Returns the certificate version number.

putCertDisplay

protected abstract void putCertDisplay(ByteString certDisplay)
                                throws java.lang.NoSuchFieldException,
                                       java.lang.NoSuchMethodException
Sets a display hint for how the SPKI certificate is best displayed. The hint is optional and may be ignored. The verifier of the certificate should treat the CertDisplay field as a comment, i.e. ignore it.

getCertDisplay

public abstract ByteString getCertDisplay()
                                   throws java.lang.NoSuchFieldException,
                                          java.lang.NoSuchMethodException
Gets the display hint for how the SPKI certificate is best displayed. The hint is optional and may be ignored. The verifier of the certificate should treat the CertDisplay field as a comment, i.e. ignore it.

putIssuer

protected abstract void putIssuer(java.security.PublicKey issuer)
                           throws java.lang.IllegalStateException,
                                  java.lang.NoSuchMethodException

getIssuer

public abstract java.security.PublicKey getIssuer()
                                           throws java.lang.NoSuchFieldException,
                                                  java.lang.NoSuchMethodException

putIssuerInfo

protected abstract void putIssuerInfo(java.net.URL[] info)
                               throws java.lang.NoSuchFieldException,
                                      java.lang.NoSuchMethodException

getIssuerInfo

public abstract java.net.URL[] getIssuerInfo()
                                      throws java.lang.NoSuchFieldException,
                                             java.lang.NoSuchMethodException

putSubject

protected abstract void putSubject(java.lang.Object subject)
                            throws java.lang.NoSuchFieldException,
                                   java.lang.NoSuchMethodException

getSubject

public abstract java.lang.Object getSubject()
                                     throws java.lang.NoSuchFieldException,
                                            java.lang.NoSuchMethodException

putSubjectInfo

protected abstract void putSubjectInfo(java.net.URL[] info)
                                throws java.lang.NoSuchFieldException,
                                       java.lang.NoSuchMethodException

getSubjectInfo

public abstract java.net.URL[] getSubjectInfo()
                                       throws java.lang.NoSuchFieldException,
                                              java.lang.NoSuchMethodException

putDeleg

protected abstract void putDeleg(boolean deleg)
                          throws java.lang.IllegalStateException,
                                 java.lang.NoSuchMethodException

getDeleg

public abstract boolean getDeleg()
                          throws java.lang.NoSuchFieldException,
                                 java.lang.NoSuchMethodException

putValidity

protected abstract void putValidity(Validity valid)
                             throws java.lang.IllegalStateException,
                                    java.lang.NoSuchMethodException

getValidity

public abstract Validity getValidity()
                              throws java.lang.NoSuchFieldException,
                                     java.lang.NoSuchMethodException

putTag

protected abstract void putTag(Tag tag)
                        throws java.lang.IllegalStateException,
                               java.lang.NoSuchMethodException

getTag

public abstract Tag getTag()
                    throws java.lang.NoSuchFieldException,
                           java.lang.NoSuchMethodException

putComment

protected abstract void putComment(ByteString comment)
                            throws java.lang.IllegalStateException,
                                   java.lang.NoSuchMethodException

getComment

public abstract ByteString getComment()
                               throws java.lang.NoSuchFieldException,
                                      java.lang.NoSuchMethodException

isValid

public abstract boolean isValid()

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException