com.clearfield.security
Class ListCertificateEntry

java.lang.Object
  extended by com.clearfield.security.ListCertificateEntry

public class ListCertificateEntry
extends java.lang.Object

This holds a certificate entry in the list. This matches a display alias entry to the certificate.

Copyright © 2006 Clearfield Ltd. This software is distributed under the BSD license. See the accompanying license.txt for details.

Version:
1.0.0
Author:
Dr. David J. Knowles

Field Summary
protected  java.lang.String alias
           
protected  java.security.cert.Certificate certificate
           
 
Constructor Summary
ListCertificateEntry()
          Default constructor.
ListCertificateEntry(java.security.cert.Certificate certificate)
          Creates an entry given the specified certificate.
ListCertificateEntry(java.lang.String alias, java.security.cert.Certificate certificate)
          Creates the entry given an alias and a certificate.
 
Method Summary
 java.lang.String getAlias()
          Returns the alias name of the entry.
 java.security.cert.Certificate getCertificate()
          Returns the certificate in the entry.
 void setAlias(java.lang.String alias)
          Sets the alias name of the entry.
 void setCertificate(java.security.cert.Certificate certificate)
          Sets the certificate for the entry.
 java.lang.String toString()
          Converts the entry to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

alias

protected java.lang.String alias

certificate

protected java.security.cert.Certificate certificate
Constructor Detail

ListCertificateEntry

public ListCertificateEntry()
Default constructor.


ListCertificateEntry

public ListCertificateEntry(java.lang.String alias,
                            java.security.cert.Certificate certificate)
Creates the entry given an alias and a certificate.

Parameters:
alias - String name given to the certificate entry.
certificate - Certificate for the entry.

ListCertificateEntry

public ListCertificateEntry(java.security.cert.Certificate certificate)
Creates an entry given the specified certificate.

Parameters:
certificate - Certificate for the entry.
Method Detail

getCertificate

public java.security.cert.Certificate getCertificate()
Returns the certificate in the entry.

Returns:
Returns the certificate.

setCertificate

public void setCertificate(java.security.cert.Certificate certificate)
Sets the certificate for the entry.

Parameters:
certificate - The certificate to set.

toString

public java.lang.String toString()
Converts the entry to a string.

Overrides:
toString in class java.lang.Object
Returns:
String containing the string version of the entry.

getAlias

public java.lang.String getAlias()
Returns the alias name of the entry.

Returns:
Returns the alias.

setAlias

public void setAlias(java.lang.String alias)
Sets the alias name of the entry.

Parameters:
alias - The alias to set.