org.jacorb.security.level2
Class KeyAndCert

java.lang.Object
  extended byorg.jacorb.security.level2.KeyAndCert

public class KeyAndCert
extends java.lang.Object

KeyAndCert.java Created: Mon Sep 4 16:33:49 2000

Version:
$Id: KeyAndCert.java,v 1.9 2003/10/30 13:15:57 brose Exp $
Author:
Nicolas Noffke

Field Summary
 java.security.cert.Certificate[] chain
           
 java.security.PrivateKey key
           
 
Constructor Summary
KeyAndCert(KeyAndCert source)
           
KeyAndCert(java.security.PrivateKey key, java.security.cert.Certificate[] chain)
           
 
Method Summary
 java.security.PublicKey getPublicKey()
          return the public key of the first Certificate in the chain, if there are any certs.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

public java.security.PrivateKey key

chain

public java.security.cert.Certificate[] chain
Constructor Detail

KeyAndCert

public KeyAndCert(java.security.PrivateKey key,
                  java.security.cert.Certificate[] chain)

KeyAndCert

public KeyAndCert(KeyAndCert source)
Method Detail

toString

public java.lang.String toString()

getPublicKey

public java.security.PublicKey getPublicKey()
return the public key of the first Certificate in the chain, if there are any certs. Return null otherwise