public final class

LiveIDManager

extends Object
java.lang.Object
   ↳ org.mule.module.dynamicscrm.security.LiveIDManager

Class Overview

Management utility for the Live Id.

Summary

Fields
private final String DeviceTokenTemplate
private final String SecurityTokenSoapTemplate
static Logger logger
Public Constructors
LiveIDManager()
Public Methods
SecurityData authenticateWithLiveID(String crmUrl, String liveIDUsername, String liveIDPassword, String appliesTo, String policy, URI issuerUri)
This method demonstrate authentication with Live Id using soap and retrieve security data containing key identifier and security tokens.
Protected Methods
static RequestDateTimeData getRequestDateTime()
Get current and 5 minutes later GMT time in simple date format.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private final String DeviceTokenTemplate

Constant Value: " http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue http://Passport.NET/tb %s %s http://schemas.xmlsoap.org/ws/2005/02/trust/Issue http://Passport.NET/tb "

private final String SecurityTokenSoapTemplate

Constant Value: " http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue urn:uuid:%s http://www.w3.org/2005/08/addressing/anonymous http://Passport.NET/tb %s %s http://Passport.NET/STS %s %s http://schemas.xmlsoap.org/ws/2005/02/trust/Issue "

static Logger logger

Public Constructors

public LiveIDManager ()

Public Methods

public SecurityData authenticateWithLiveID (String crmUrl, String liveIDUsername, String liveIDPassword, String appliesTo, String policy, URI issuerUri)

This method demonstrate authentication with Live Id using soap and retrieve security data containing key identifier and security tokens.

Parameters
crmUrl CRM organization service url.
liveIDUsername User Name that should be used to connect to the server.
liveIDPassword Password that should be used to connect to the server.
appliesTo Indicates the AppliesTo that is required for the token
policy Policy that should be used when communicating with the server.
issuerUri URL for the current token issuer
Returns
  • security data
Throws
DeviceRegistrationFailedException
IOException
IllegalStateException
ParserConfigurationException
SAXException
XPathExpressionException

Protected Methods

protected static RequestDateTimeData getRequestDateTime ()

Get current and 5 minutes later GMT time in simple date format. e.g. "yyyy-MM-dd'T'HH:mm:ss"

Returns
  • RequestDateTimeData