com.microsoft.aad.adal
Class WebviewHelper

java.lang.Object
  extended by com.microsoft.aad.adal.WebviewHelper

public class WebviewHelper
extends Object

Wrapper class to handle internals for request intent and response for custom webview usage.


Nested Class Summary
static class WebviewHelper.PreKeyAuthInfo
           
 
Constructor Summary
WebviewHelper(android.content.Intent requestIntent)
          Construct with incoming requestIntent that you receive at startActivityForResult.
 
Method Summary
 WebviewHelper.PreKeyAuthInfo getPreKeyAuthInfo(String challengeUrl)
           
 String getRedirectUrl()
          Gets redirect url to tell the webview to stop before navigating.
 android.content.Intent getResultIntent(String finalUrl)
          Creates result intent to pass into onActivityResult method.
 String getStartUrl()
          Gets startUrl to use as url to start webview.
 void validateRequestIntent()
          Check request intent fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebviewHelper

public WebviewHelper(android.content.Intent requestIntent)
Construct with incoming requestIntent that you receive at startActivityForResult.

Parameters:
requestIntent - Intent that has request information.
Method Detail

validateRequestIntent

public void validateRequestIntent()
Check request intent fields.


getStartUrl

public String getStartUrl()
                   throws UnsupportedEncodingException
Gets startUrl to use as url to start webview.

Returns:
Url
Throws:
UnsupportedEncodingException

getRedirectUrl

public String getRedirectUrl()
Gets redirect url to tell the webview to stop before navigating.

Returns:
Url

getResultIntent

public android.content.Intent getResultIntent(String finalUrl)
Creates result intent to pass into onActivityResult method.

Parameters:
finalUrl -
Returns:
Intent

getPreKeyAuthInfo

public WebviewHelper.PreKeyAuthInfo getPreKeyAuthInfo(String challengeUrl)
                                               throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException


Copyright © 2003–2015. All rights reserved.