DeviceCode Class

  • java.lang.Object
    • com.microsoft.aad.adal4j.DeviceCode

public class DeviceCode

Method Summary

Modifier and Type Method and Description
String getClientId()
String getCorrelationId()
String getDeviceCode()

Returns the device code.

long getExpiresIn()

Returns the expiration in seconds.

long getInterval()

Returns the interval.

String getMessage()

Returns the message which should be displayed to the user.

String getResource()
String getUserCode()

Returns the user code.

String getVerificationUrl()

Returns the verification URL.

void setClientId(String clientId)
void setCorrelationId(String correlationId)
void setResource(String resource)

Method Details

getClientId

protected String getClientId()

getCorrelationId

protected String getCorrelationId()

getDeviceCode

public String getDeviceCode()

Returns the device code.

Returns:

The device code.

getExpiresIn

public long getExpiresIn()

Returns the expiration in seconds.

Returns:

The expiration time in seconds.

getInterval

public long getInterval()

Returns the interval.

Returns:

The interval.

getMessage

public String getMessage()

Returns the message which should be displayed to the user.

Returns:

The message.

getResource

protected String getResource()

getUserCode

public String getUserCode()

Returns the user code.

Returns:

The user code.

getVerificationUrl

public String getVerificationUrl()

Returns the verification URL.

Returns:

The verification URL.

setClientId

protected void setClientId(String clientId)

Parameters:

clientId

setCorrelationId

protected void setCorrelationId(String correlationId)

Parameters:

correlationId

setResource

protected void setResource(String resource)

Parameters:

resource

Applies to