issrg.saml.util
Class SAMLTimeFormat

java.lang.Object
  extended by issrg.saml.util.SAMLTimeFormat

public class SAMLTimeFormat
extends java.lang.Object

this class is used to get a SAML date representation as a string from a Date object. it can be used to return a Date object by giving a SAML date string.

Author:
Linying Su

Constructor Summary
SAMLTimeFormat(java.util.Date dateIn)
          Creates a new instance of SAMLTimeFormat
 
Method Summary
 java.lang.String getDate()
          returns a string, which represent the Date in the format of yyyy-mm-ddThh:mm:ss.mmmZ
 java.util.Date getDate(java.lang.String samlDate)
          returns a Date object by giving a saml date.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLTimeFormat

public SAMLTimeFormat(java.util.Date dateIn)
Creates a new instance of SAMLTimeFormat

Method Detail

getDate

public java.lang.String getDate()
returns a string, which represent the Date in the format of yyyy-mm-ddThh:mm:ss.mmmZ


getDate

public java.util.Date getDate(java.lang.String samlDate)
returns a Date object by giving a saml date.

Parameters:
samlDate - is the saml date representation.

main

public static void main(java.lang.String[] args)