org.jacorb.security.level2

Class KeyAndCert


public class KeyAndCert
extends java.lang.Object

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

Version:
$Id: KeyAndCert.java,v 1.10 2004/05/06 12:40:01 nicolas Exp $

Author:
Nicolas Noffke

Field Summary

Certificate[]
chain
PrivateKey
key

Constructor Summary

KeyAndCert(PrivateKey key, Certificate[] chain)
KeyAndCert(KeyAndCert source)

Method Summary

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

Field Details

chain

public Certificate[] chain


key

public PrivateKey key

Constructor Details

KeyAndCert

public KeyAndCert(PrivateKey key,
                  Certificate[] chain)


KeyAndCert

public KeyAndCert(KeyAndCert source)

Method Details

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


toString

public String toString()