org.nhindirect.config.model
Class Anchor

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

public class Anchor
extends Object

A trust anchor used for discerning trust of an end entity certificates.

Since:
1.0
Author:
Greg Meyer

Constructor Summary
Anchor()
          Empty constructor.
 
Method Summary
 X509Certificate getAnchorAsX509Certificate()
           
 byte[] getCertificateData()
          Gets the DER encoded data of the anchor.
 long getCertificateId()
          Gets the internal id of the anchor.
 Calendar getCreateTime()
          Gets the date/time that the anchor was added to the system.
 long getId()
          Gets the internal id of the anchor.
 String getOwner()
          Gets the owner of the anchor.
 EntityStatus getStatus()
          Gets the status of the anchor.
 String getThumbprint()
          Gets the thumbprint of the anchor.
 Calendar getValidEndDate()
          Gets the valid until date/time of the anchor.
 Calendar getValidStartDate()
          Gets the valid from date/time of the anchor.
 boolean isIncoming()
          Determines if the anchor is valid for incoming messages.
 boolean isOutgoing()
          Determines if the anchor is valid for outgoing messages.
 void setCertificateData(byte[] certificateData)
          Sets the DER encoded data of the anchor.
 void setCertificateId(long certificateId)
          Sets the internal id of the anchor.
 void setCreateTime(Calendar createTime)
          Sets the date/time that the anchor was added to the system.
 void setId(long id)
          Sets the internal id of the anchor.
 void setIncoming(boolean incoming)
          Sets if the anchor is valid for incoming messages.
 void setOutgoing(boolean outgoing)
          Sets if the outgoing is valid for outgoing messages.
 void setOwner(String owner)
          Sets the owner of the anchor.
 void setStatus(EntityStatus status)
          Sets the status of the anchor.
 void setThumbprint(String thumbprint)
          Sets the thumbprint of the anchor.
 void setValidEndDate(Calendar validEndDate)
          Sets the valid until date/time of the anchor.
 void setValidStartDate(Calendar validStartDate)
          Sets the valid from date/time of the anchor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Anchor

public Anchor()
Empty constructor.

Method Detail

getOwner

public String getOwner()
Gets the owner of the anchor. The owner is domain name that this anchor is associate with.

Returns:
The owner of the anchor.

setOwner

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

Parameters:
owner - The owner of the anchor.

getThumbprint

public String getThumbprint()
Gets the thumbprint of the anchor. A thumbprint is a SHA-1 has of the DER encoding of the anchor.

Returns:
The thumbprint of the anchor.

setThumbprint

public void setThumbprint(String thumbprint)
Sets the thumbprint of the anchor.

Parameters:
thumbprint - The thumbprint of the anchor.

getCertificateId

public long getCertificateId()
Gets the internal id of the anchor.

Returns:
The interal id of the anchor.

setCertificateId

public void setCertificateId(long certificateId)
Sets the internal id of the anchor.

Parameters:
certificateId - The internal id of the anchor.

getCertificateData

public byte[] getCertificateData()
Gets the DER encoded data of the anchor.

Returns:
The DER encoded data of the anchor.

setCertificateData

public void setCertificateData(byte[] certificateData)
Sets the DER encoded data of the anchor.

Parameters:
certificateData - The DER encoded data of the anchor.

getId

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

Returns:
The interal id of the anchor.

setId

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

Parameters:
certificateId - The internal id of the anchor.

getCreateTime

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

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

setCreateTime

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

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

getValidStartDate

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

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

setValidStartDate

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

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

getValidEndDate

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

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

setValidEndDate

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

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

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.

isIncoming

public boolean isIncoming()
Determines if the anchor is valid for incoming messages.

Returns:
True if the anchor can be use for incoming messages; false otherwise.

setIncoming

public void setIncoming(boolean incoming)
Sets if the anchor is valid for incoming messages.

Parameters:
incoming - True if the anchor can be use for incoming messages; false otherwise.

isOutgoing

public boolean isOutgoing()
Determines if the anchor is valid for outgoing messages.

Returns:
True if the anchor can be use for outgoing messages; false otherwise.

setOutgoing

public void setOutgoing(boolean outgoing)
Sets if the outgoing is valid for outgoing messages.

Parameters:
outgoing - True if the anchor can be use for outgoing messages; false otherwise.

getAnchorAsX509Certificate

public X509Certificate getAnchorAsX509Certificate()


Copyright © 2014. All Rights Reserved.