XGTRBAC
Class CredType.Header

java.lang.Object
  extended by XGTRBAC.CredType.Header
Enclosing class:
CredType

public class CredType.Header
extends java.lang.Object

An inner "Header" class *


Field Summary
private  java.util.GregorianCalendar calendar
           
private  java.text.SimpleDateFormat dateFormatter
           
private  java.lang.String DSig
           
private  java.lang.String IssuerName
           
private  java.lang.String IssuerNameFormat
           
private  java.util.Date NotBefore
           
private  java.util.Date NotOnOrAfter
           
private  java.lang.String PrincipalName
           
private  java.lang.String PrincipalNameFormat
           
 
Constructor Summary
CredType.Header()
          Creates a new instance of Header Constructor with default pattern (YYYY:MM:DD)
 
Method Summary
 java.lang.String getIssuerName()
          Returns the issuer name
 java.lang.String getIssuerNameFormat()
          Returns the issuer name format
 java.util.Date getNotBefore()
          Returns the NotBefore date
 int getNotBeforeDay()
          Retrieves the NotBefore date day
 int getNotBeforeMonth()
          Retrieves the NotBefore date month
 int getNotBeforeYear()
          Retrieves the NotBefore date year
 java.util.Date getNotOnOrAfter()
          Returns the NotOnOrAfter date
 int getNotOnOrAfterDay()
          Retrieves the NotOnOrAfter date day
 int getNotOnOrAfterMonth()
          Retrieves the NotOnOrAfter date month
 int getNotOnOrAfterYear()
          Retrieves the NotOnOrAfter date year
 java.lang.String getPrincipalName()
          Returns the principal name
 java.lang.String getPrincipalNameFormat()
          Returns the principal name format
 java.lang.String getSignature()
          Returns the signature
 void setIssuerName(java.lang.String name)
          Sets the issuer name
 void setIssuerNameFormat(java.lang.String format)
          Sets the issuer name format
 void setNotBefore(java.lang.String date)
          Sets the NotBefore date
 void setNotOnOrAfter(java.lang.String date)
          Sets the NotOnOrAfter date
 void setPrincipalName(java.lang.String name)
          Sets the principal name
 void setPrincipalNameFormat(java.lang.String format)
          Sets the principal name format
 void setSignature(java.lang.String dsig)
          Sets the signature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IssuerNameFormat

private java.lang.String IssuerNameFormat

IssuerName

private java.lang.String IssuerName

PrincipalNameFormat

private java.lang.String PrincipalNameFormat

PrincipalName

private java.lang.String PrincipalName

DSig

private java.lang.String DSig

NotOnOrAfter

private java.util.Date NotOnOrAfter

NotBefore

private java.util.Date NotBefore

dateFormatter

private java.text.SimpleDateFormat dateFormatter

calendar

private java.util.GregorianCalendar calendar
Constructor Detail

CredType.Header

public CredType.Header()
Creates a new instance of Header Constructor with default pattern (YYYY:MM:DD)

Method Detail

getIssuerNameFormat

public java.lang.String getIssuerNameFormat()
Returns the issuer name format

Returns:
The format of issuer name as String

setIssuerNameFormat

public void setIssuerNameFormat(java.lang.String format)
Sets the issuer name format

Parameters:
format - The format of the issuer name supplied as String

getIssuerName

public java.lang.String getIssuerName()
Returns the issuer name

Returns:
The name of the Issuer as String

setIssuerName

public void setIssuerName(java.lang.String name)
Sets the issuer name

Parameters:
name - The name of the issuer supplied as String

getPrincipalNameFormat

public java.lang.String getPrincipalNameFormat()
Returns the principal name format

Returns:
The format of principal name as String

setPrincipalNameFormat

public void setPrincipalNameFormat(java.lang.String format)
Sets the principal name format

Parameters:
format - The format of the principal name supplied as String

getPrincipalName

public java.lang.String getPrincipalName()
Returns the principal name

Returns:
The value of the principal as String

setPrincipalName

public void setPrincipalName(java.lang.String name)
Sets the principal name

Parameters:
name - The name of the principal supplied as String

getSignature

public java.lang.String getSignature()
Returns the signature

Returns:
The signature as String

setSignature

public void setSignature(java.lang.String dsig)
Sets the signature

Parameters:
dsig - The signature supplied as String

getNotOnOrAfter

public java.util.Date getNotOnOrAfter()
Returns the NotOnOrAfter date

Returns:
The NonOnOrAfter date as Date

setNotOnOrAfter

public void setNotOnOrAfter(java.lang.String date)
                     throws java.lang.Exception
Sets the NotOnOrAfter date

Parameters:
date - The date supplied as String
Throws:
java.lang.Exception

getNotBefore

public java.util.Date getNotBefore()
Returns the NotBefore date

Returns:
The NotBefore date as Date

setNotBefore

public void setNotBefore(java.lang.String date)
                  throws java.lang.Exception
Sets the NotBefore date

Parameters:
date - The date supplied as String
Throws:
java.lang.Exception

getNotBeforeYear

public int getNotBeforeYear()
Retrieves the NotBefore date year

Returns:
An integer representing the year of NotBefore date

getNotOnOrAfterYear

public int getNotOnOrAfterYear()
Retrieves the NotOnOrAfter date year

Returns:
An integer representing the year of NotOnOrAfter date

getNotBeforeMonth

public int getNotBeforeMonth()
Retrieves the NotBefore date month

Returns:
An integer representing the month of NotBefore date

getNotOnOrAfterMonth

public int getNotOnOrAfterMonth()
Retrieves the NotOnOrAfter date month

Returns:
An integer representing the month of NotOnOrAfter date

getNotBeforeDay

public int getNotBeforeDay()
Retrieves the NotBefore date day

Returns:
An integer representing the day of NotBefore date

getNotOnOrAfterDay

public int getNotOnOrAfterDay()
Retrieves the NotOnOrAfter date day

Returns:
An integer representing the day of NotOnOrAfter date