ajanta.util
Class KeyCertificate

java.lang.Object
  |
  +--ajanta.util.KeyCertificate
All Implemented Interfaces:
java.security.Certificate

public class KeyCertificate
extends java.lang.Object
implements java.security.Certificate


Constructor Summary
KeyCertificate(java.lang.String n, java.security.PublicKey p, java.security.PrivateKey nsKey)
           
 
Method Summary
 void decode(java.io.InputStream i)
           
 void encode(java.io.OutputStream o)
           
 java.lang.String getFormat()
           
 java.security.Principal getGuarantor()
           
 java.security.Principal getPrincipal()
           
 java.security.PublicKey getPublicKey()
           
 byte[] getSignature()
           
 java.lang.String toString(boolean detailed)
           
 boolean verify(java.security.PublicKey k)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyCertificate

public KeyCertificate(java.lang.String n,
                      java.security.PublicKey p,
                      java.security.PrivateKey nsKey)
               throws java.security.KeyManagementException,
                      java.io.IOException,
                      java.security.SignatureException,
                      java.security.NoSuchAlgorithmException,
                      java.security.InvalidKeyException
Method Detail

decode

public void decode(java.io.InputStream i)
            throws java.security.KeyException,
                   java.io.IOException
Specified by:
decode in interface java.security.Certificate
java.security.KeyException
java.io.IOException

encode

public void encode(java.io.OutputStream o)
            throws java.security.KeyException,
                   java.io.IOException
Specified by:
encode in interface java.security.Certificate
java.security.KeyException
java.io.IOException

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Certificate

getGuarantor

public java.security.Principal getGuarantor()
Specified by:
getGuarantor in interface java.security.Certificate

getPublicKey

public java.security.PublicKey getPublicKey()
Specified by:
getPublicKey in interface java.security.Certificate

getPrincipal

public java.security.Principal getPrincipal()
Specified by:
getPrincipal in interface java.security.Certificate

toString

public java.lang.String toString(boolean detailed)
Specified by:
toString in interface java.security.Certificate

getSignature

public byte[] getSignature()

verify

public boolean verify(java.security.PublicKey k)
               throws java.security.NoSuchAlgorithmException,
                      java.security.InvalidKeyException,
                      java.io.IOException,
                      java.security.SignatureException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.io.IOException
java.security.SignatureException