org.nhindirect.config.model
Class Certificate

java.lang.Object
  extended by org.nhindirect.config.model.Certificate

public class Certificate
extends Object

An end entity X509 certificate.

Since:
1.0
Author:
Greg Meyer

Constructor Summary
Certificate()
          Empty contstructor.
 
Method Summary
 Calendar getCreateTime()
          Gets the date/time that the certificate was added to the system.
 byte[] getData()
          Get the DER encoded data of the certificate.
 long getId()
          Gets the internal id of the certificate.
 String getOwner()
          Gets the owner of the certificate.
 EntityStatus getStatus()
          Gets the status of the anchor.
 String getThumbprint()
          Gets the thumb print of the certificate.
 Calendar getValidEndDate()
          Gets the valid until date/time of the certificate.
 Calendar getValidStartDate()
          Gets the valid from date/time of the certificate.
 boolean isPrivateKey()
          Indicates if the certificate's private key is present.
 void setCreateTime(Calendar createTime)
          Sets the date/time that the certificate was added to the system.
 void setData(byte[] data)
          Sets the DER encoded data of the certificate.
 void setId(long id)
          Sets the internal id of the certificate.
 void setOwner(String owner)
          Sets the owner of the certificate.
 void setPrivateKey(boolean privateKey)
          Indicates if the certificate's private key is present.
 void setStatus(EntityStatus status)
          Sets the status of the anchor.
 void setThumbprint(String thumbprint)
          Sets the thumb print of the certificate.
 void setValidEndDate(Calendar validEndDate)
          Sets the valid until date/time of the certificate.
 void setValidStartDate(Calendar validStartDate)
          Sets the valid from date/time of the certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Certificate

public Certificate()
Empty contstructor.

Method Detail

getOwner

public String getOwner()
Gets the owner of the certificate. The owner is determined by the email address or domain that this certificate is bound to.

Returns:
The owner of the certificate.

setOwner

public void setOwner(String owner)
Sets the owner of the certificate.

Parameters:
owner - The owner of the certificate

getThumbprint

public String getThumbprint()
Gets the thumb print of the certificate. The thumb print is a SHA-1 hash of the certificates DER encoded data.

Returns:
The thumb print of the certificate.

setThumbprint

public void setThumbprint(String thumbprint)
Sets the thumb print of the certificate.

Parameters:
thumbprint - The thumb print of the certificate.

getId

public long getId()
Gets the internal id of the certificate.

Returns:
The internal id of the certificate.

setId

public void setId(long id)
Sets the internal id of the certificate.

Parameters:
id - The internal id of the certificate.

getData

public byte[] getData()
Get the DER encoded data of the certificate.

Returns:
The DER encoded data of the certificate.

setData

public void setData(byte[] data)
Sets the DER encoded data of the certificate.

Parameters:
data - The DER encoded data of the certificate.

getCreateTime

public Calendar getCreateTime()
Gets the date/time that the certificate was added to the system.

Returns:
The date/time that the certificate was added to the system.

setCreateTime

public void setCreateTime(Calendar createTime)
Sets the date/time that the certificate was added to the system.

Parameters:
createTime - The date/time that the certificate was added to the system.

getValidStartDate

public Calendar getValidStartDate()
Gets the valid from date/time of the certificate.

Returns:
The valid from date/time of the certificate.

setValidStartDate

public void setValidStartDate(Calendar validStartDate)
Sets the valid from date/time of the certificate.

Parameters:
validStartDate - The valid from date/time of the certificate.

getValidEndDate

public Calendar getValidEndDate()
Gets the valid until date/time of the certificate.

Returns:
The valid until date/time of the certificate.

setValidEndDate

public void setValidEndDate(Calendar validEndDate)
Sets the valid until date/time of the certificate.

Parameters:
validEndDate - The valid until date/time of the certificate.

getStatus

public EntityStatus getStatus()
Gets the status of the anchor.

Returns:
The status of the anchor.

setStatus

public void setStatus(EntityStatus status)
Sets the status of the anchor.

Parameters:
status - The status of the anchor.

isPrivateKey

public boolean isPrivateKey()
Indicates if the certificate's private key is present.

Returns:
True if the certificate's private key is present. False otherwise.

setPrivateKey

public void setPrivateKey(boolean privateKey)
Indicates if the certificate's private key is present.

Parameters:
privateKey - True if the certificate's private key is present. False otherwise.


Copyright © 2014. All Rights Reserved.