org.nhindirect.config.model
Class TrustBundle

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

public class TrustBundle
extends Object

A Direct trust bundle.

Since:
1.0
Author:
Greg Meyer

Constructor Summary
TrustBundle()
          Empty constructor
 
Method Summary
 String getBundleName()
          Gets the name of the bundle.
 String getBundleURL()
          Gets the URL location of the bundle.
 String getCheckSum()
          Gets the check sum of the bundle.
 Calendar getCreateTime()
          Gets the date/time that bundle was created in the system.
 long getId()
          Gets the internal system id of the trust bundle.
 Calendar getLastRefreshAttempt()
          Gets the date/time of the last time a refresh was attempted.
 BundleRefreshError getLastRefreshError()
          Gets the status of the last refresh attempt.
 Calendar getLastSuccessfulRefresh()
          Gets the date/time of the last time the bundle was successfully refreshed.
 int getRefreshInterval()
          Gets the refresh interval for the bundle.
 X509Certificate getSigningCertificateAsX509Certificate()
           
 byte[] getSigningCertificateData()
          Gets the DER encoded data of the X509 certificate that signed the bundle.
 Collection<TrustBundleAnchor> getTrustBundleAnchors()
          Gets the trust anchors in the bundle.
 void setBundleName(String bundleName)
          Sets the name of the bundle.
 void setBundleURL(String bundleURL)
          Sets the URL location of the bundle.
 void setCheckSum(String checkSum)
          Sets the check sum of the bundle.
 void setCreateTime(Calendar createTime)
          Sets the date/time that bundle was created in the system.
 void setId(long id)
          Sets the internal system id of the trust bundle.
 void setLastRefreshAttempt(Calendar lastRefreshAttempt)
          Sets the date/time of the last time a refresh was attempted.
 void setLastRefreshError(BundleRefreshError lastRefreshError)
          Sets the status of the last refresh attempt.
 void setLastSuccessfulRefresh(Calendar lastSuccessfulRefresh)
          Sets the date/time of the last time the bundle was successfully refreshed.
 void setRefreshInterval(int refreshInterval)
          Sets the refresh interval for the bundle.
 void setSigningCertificateData(byte[] signingCertificateData)
          Sets the DER encoded data of the X509 certificate that signed the bundle.
 void setTrustBundleAnchors(Collection<TrustBundleAnchor> trustBundleAnchors)
          Sets the trust anchors in the bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustBundle

public TrustBundle()
Empty constructor

Method Detail

getId

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

Returns:
The internal system id of the trust bundle.

setId

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

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

getBundleName

public String getBundleName()
Gets the name of the bundle.

Returns:
The name of the bundle.

setBundleName

public void setBundleName(String bundleName)
Sets the name of the bundle.

Parameters:
bundleName - The name of the bundle.

getBundleURL

public String getBundleURL()
Gets the URL location of the bundle.

Returns:
The URL location of the bundle.

setBundleURL

public void setBundleURL(String bundleURL)
Sets the URL location of the bundle.

Parameters:
bundleURL - The URL location of the bundle.

getSigningCertificateData

public byte[] getSigningCertificateData()
Gets the DER encoded data of the X509 certificate that signed the bundle.

Returns:
The DER encoded data of the X509 certificate that signed the bundle.

setSigningCertificateData

public void setSigningCertificateData(byte[] signingCertificateData)
Sets the DER encoded data of the X509 certificate that signed the bundle.

Parameters:
signingCertificateData - The DER encoded data of the X509 certificate that signed the bundle.

getTrustBundleAnchors

public Collection<TrustBundleAnchor> getTrustBundleAnchors()
Gets the trust anchors in the bundle.

Returns:
The trust anchors in the bundle.

setTrustBundleAnchors

public void setTrustBundleAnchors(Collection<TrustBundleAnchor> trustBundleAnchors)
Sets the trust anchors in the bundle.

Parameters:
trustBundleAnchors - The trust anchors in the bundle.

getRefreshInterval

public int getRefreshInterval()
Gets the refresh interval for the bundle.

Returns:
The refresh interval for the bundle.

setRefreshInterval

public void setRefreshInterval(int refreshInterval)
Sets the refresh interval for the bundle.

Parameters:
refreshInterval - The refresh interval for the bundle.

getLastRefreshAttempt

public Calendar getLastRefreshAttempt()
Gets the date/time of the last time a refresh was attempted.

Returns:
The date/time of the last time a refresh was attempted.

setLastRefreshAttempt

public void setLastRefreshAttempt(Calendar lastRefreshAttempt)
Sets the date/time of the last time a refresh was attempted.

Parameters:
lastRefreshAttempt - The date/time of the last time a refresh was attempted.

getLastRefreshError

public BundleRefreshError getLastRefreshError()
Gets the status of the last refresh attempt.

Returns:
The status of the last refresh attempt.

setLastRefreshError

public void setLastRefreshError(BundleRefreshError lastRefreshError)
Sets the status of the last refresh attempt.

Parameters:
lastRefreshError - The status of the last refresh attempt.

getLastSuccessfulRefresh

public Calendar getLastSuccessfulRefresh()
Gets the date/time of the last time the bundle was successfully refreshed.

Returns:
The date/time of the last time the bundle was successfully refreshed.

setLastSuccessfulRefresh

public void setLastSuccessfulRefresh(Calendar lastSuccessfulRefresh)
Sets the date/time of the last time the bundle was successfully refreshed.

Parameters:
lastSuccessfulRefresh - The date/time of the last time the bundle was successfully refreshed.

getCreateTime

public Calendar getCreateTime()
Gets the date/time that bundle was created in the system.

Returns:
The date/time that bundle was created in the system.

setCreateTime

public void setCreateTime(Calendar createTime)
Sets the date/time that bundle was created in the system.

Parameters:
createTime - The date/time that bundle was created in the system.

getCheckSum

public String getCheckSum()
Gets the check sum of the bundle. This consists of a an SHA-1 has of the bundle file.

Returns:
The check sum of the bundle.

setCheckSum

public void setCheckSum(String checkSum)
Sets the check sum of the bundle.

Parameters:
checkSum - The check sum of the bundle.

getSigningCertificateAsX509Certificate

public X509Certificate getSigningCertificateAsX509Certificate()


Copyright © 2014. All Rights Reserved.