Skip navigation links

Oracle Security Developer Tools Web Services Security Java API Reference
11g (11.1.1)

E10678-02


oracle.security.xmlsec.wss.encoding
Class XSDDateTimeEncoder

java.lang.Object
  extended by oracle.security.xmlsec.wss.encoding.XSDDateTimeEncoder

All Implemented Interfaces:
TimeDataEncoder

public class XSDDateTimeEncoder
extends java.lang.Object
implements TimeDataEncoder

Implements encoding of time in the UTC format.


Constructor Summary
XSDDateTimeEncoder()
           

 

Method Summary
 java.util.Date decode(java.lang.String encoded)
          Parses a date String.
 java.lang.String encode(java.util.Date time)
          Formats time as a String in UTC format.
 java.lang.String getValueType()
          Get the ValueType for this encoder.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

XSDDateTimeEncoder

public XSDDateTimeEncoder()

Method Detail

encode

public java.lang.String encode(java.util.Date time)
Formats time as a String in UTC format.
Specified by:
encode in interface TimeDataEncoder
Parameters:
time - The Date to format.
Returns:
A String representation of the UTC time.

decode

public java.util.Date decode(java.lang.String encoded)
Parses a date String.
Specified by:
decode in interface TimeDataEncoder
Parameters:
encoded - The formatted date String.
Returns:
A Date object.

getValueType

public java.lang.String getValueType()
Get the ValueType for this encoder.
Specified by:
getValueType in interface TimeDataEncoder
Returns:
The QName representing this encoder.

Skip navigation links

Oracle Security Developer Tools Web Services Security Java API Reference
11g (11.1.1)

E10678-02


Copyright © 2005, 2009, Oracle. All rights reserved.