org.nhindirect.config.model
Class TrustBundleAnchor

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

public class TrustBundleAnchor
extends Object

An trust anchor within a trust bundle.

Since:
1.0
Author:
Greg Meyer

Constructor Summary
TrustBundleAnchor()
          Empty constructor.
 
Method Summary
 byte[] getAnchorData()
          Gets the DER encoded data of the anchor.
 X509Certificate getAsX509Certificate()
           
 long getId()
          Gets the internal system id of the trust bundle anchor.
 String getThumbprint()
          Gets the thumb print 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.
 void setAnchorData(byte[] anchorData)
          Sets the DER encoded data of the anchor.
 void setId(long id)
          Sets the internal system id of the trust bundle anchor.
 void setThumbprint(String thumbprint)
          Sets the thumb print 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

TrustBundleAnchor

public TrustBundleAnchor()
Empty constructor.

Method Detail

getId

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

Returns:
The internal system id of the trust bundle anchor.

setId

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

Parameters:
id - The internal system id of the trust bundle anchor.

getAnchorData

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

Returns:
The DER encoded data of the anchor.

setAnchorData

public void setAnchorData(byte[] anchorData)
Sets the DER encoded data of the anchor.

Parameters:
anchorData - the DER encoded data of the anchor.

getThumbprint

public String getThumbprint()
Gets the thumb print of the anchor. The thumb print consists of a SHA-1 hash of the anchors DER encoding.

Returns:
The thumb print of the anchor.

setThumbprint

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

Parameters:
thumbprint - The thumb print of the anchor.

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.

getAsX509Certificate

public X509Certificate getAsX509Certificate()


Copyright © 2014. All Rights Reserved.