com.jp.windows.live
Class SecurityToken

java.lang.Object
  extended by com.jp.windows.live.SecurityToken

public class SecurityToken
extends java.lang.Object

This class holds the result of successful login to the Windows Live ID.


Method Summary
 java.lang.String getBinarySecurityToken()
          Returns binarySecurityToken value.
 java.util.Date getExpireDate()
          Returns expireDate value
 java.util.Date getIssueDate()
          Returns issueDate value
 SOAPBody getSOAPBody()
          Returns SOAPBody of the response returned by the Windows Live ID service
 boolean isValid()
          Checks whether this SecurityToken is valid.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isValid

public boolean isValid()
Checks whether this SecurityToken is valid. It's considered valid if the binarySecurityToken property is not empty.

Returns:
true if SecurityToken is valid; false otherwise.

getBinarySecurityToken

public java.lang.String getBinarySecurityToken()
Returns binarySecurityToken value. This value is also known as passportTicket. It should be passed to various systems as the confirmation of successful logon to allow access to desired funtionality.

Returns:
binarySecurityToken value

getIssueDate

public java.util.Date getIssueDate()
Returns issueDate value

Returns:
issueDate value

getExpireDate

public java.util.Date getExpireDate()
Returns expireDate value

Returns:
expireDate value

getSOAPBody

public SOAPBody getSOAPBody()
Returns SOAPBody of the response returned by the Windows Live ID service

Returns:
SOAPBody of the response