XCMS Toolkit

com.cms.crypto
Interface KeyRepository


public interface KeyRepository

A public interface that defines methods for locating public and private keys, and their associated Public Key certificates.

Version:
1.00 - 2005/09/25
Author:
support@phillipgriffin.com

Method Summary
 java.security.cert.Certificate getCertificate(byte[] hash)
          Gets a Public Key certificate (X.509 or other) identified by the message digest (hash) of the entire certificate.
 java.security.cert.Certificate getCertificate(java.lang.String name)
          Gets a Public Key certificate (X.509 or other).
 java.security.PublicKey getPublicKey(byte[] hash)
          Gets the public key component of a public-private key pair using the message digest (hash) of a Public Key certificate.
 java.security.PublicKey getPublicKey(java.lang.String name)
          Gets the public key component of a public-private key pair using the message digest (hash) of a Public Key certificate.
 java.security.PrivateKey PrivateKey(java.lang.String name)
          Gets the private key component of a public-private key pair.
 

Method Detail

getCertificate

java.security.cert.Certificate getCertificate(java.lang.String name)
Gets a Public Key certificate (X.509 or other).

Parameters:
name - unique identifier of a Public Key certificate, which indirectly identifies the associated public-private key pair associated with the certificate

getCertificate

java.security.cert.Certificate getCertificate(byte[] hash)
Gets a Public Key certificate (X.509 or other) identified by the message digest (hash) of the entire certificate.

Parameters:
hash - uniquely identifies a Public Key certificate, thus indirectly identifying the associated public-private key pair associated with the certificate

getPublicKey

java.security.PublicKey getPublicKey(java.lang.String name)
Gets the public key component of a public-private key pair using the message digest (hash) of a Public Key certificate.

Parameters:
name - unique identifier of a Public Key certificate, which indirectly identifies the associated public-private key pair associated with the certificate

getPublicKey

java.security.PublicKey getPublicKey(byte[] hash)
Gets the public key component of a public-private key pair using the message digest (hash) of a Public Key certificate.

Parameters:
hash - uniquely identifies a Public Key certificate, thus indirectly identifying the associated public-private key pair associated with the certificate

PrivateKey

java.security.PrivateKey PrivateKey(java.lang.String name)
Gets the private key component of a public-private key pair.

Parameters:
name - unique identifier of a Public Key certificate, which indirectly identifies the associated public-private key pair associated with the certificate

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.