AuthenticationSettings Enum
- java.
lang. Object - java.
lang. Enum<AuthenticationSettings> - com.
microsoft. aad. adal. AuthenticationSettings
- com.
- java.
public enum AuthenticationSettings
Settings to be used in AuthenticationContext.
getActivityPackageName()
public String getActivityPackageName()
get package name to setup intent for AuthenticationActivity.
getBrokerPackageName()
public String getBrokerPackageName()
Gets packagename for broker app that installed authenticator.
getBrokerSignature()
public String getBrokerSignature()
Gets broker signature for broker app that installed authenticator.
getConnectTimeOut()
getDeviceCertificateProxy()
public Class getDeviceCertificateProxy()
get class for work place join related API. This is only used from Authenticator side.
getDisableWebViewHardwareAcceleration()
public boolean getDisableWebViewHardwareAcceleration()
Method to check whether WebView used in AuthenticationActivity and AuthenticationDialog would be hardware accelerated or not.
getExpirationBuffer()
public int getExpirationBuffer()
Gets expiration buffer.
getReadTimeOut()
getSecretKeyData()
public byte [] getSecretKeyData()
Get bytes to derive secretKey to use in encrypt/decrypt.
getSharedPrefPackageName()
public String getSharedPrefPackageName()
Gets package name provided for shared preferences.
getSkipBroker()
public boolean getSkipBroker()
<xreftitle>Deprecated</xreftitle>
<xrefdescription>
<p>As of release 1.1.14, replaced by <xref uid="com.microsoft.aad.adal.AuthenticationSettings.getUseBroker()" data-throw-if-not-resolved="false" data-raw-source="getUseBroker()"></xref></p>
</xrefdescription>
getUseBroker()
setActivityPackageName(String activityPackageName)
public void setActivityPackageName(String activityPackageName)
set package name to setup intent for AuthenticationActivity.
- activityPackageName
- String
setBrokerPackageName(String packageName)
public void setBrokerPackageName(String packageName)
Sets package name for broker app that installed authenticator.
- packageName
- String
setBrokerSignature(String brokerSignature)
public void setBrokerSignature(String brokerSignature)
Sets broker app info for ADAL to use.
- brokerSignature
- String
setConnectTimeOut(int timeOutMillis)
public void setConnectTimeOut(int timeOutMillis)
Sets the maximum time in milliseconds to wait while connecting. Connecting to a server will fail with a SocketTimeoutException if the timeout elapses before a connection is established. Default value is 30000 milliseconds.
- timeOutMillis
- int
setDeviceCertificateProxyClass(Class clazz)
public void setDeviceCertificateProxyClass(Class clazz)
set class for work place join related API. This is only used from Authenticator side.
- clazz
- Class
setDisableWebViewHardwareAcceleration(boolean enable)
public void setDisableWebViewHardwareAcceleration(boolean enable)
Method to enable/disable WebView hardware acceleration used in AuthenticationActivity and AuthenticationDialog. By default hardware acceleration is enable in WebView.
- enable
- boolean
setExpirationBuffer(int expirationBuffer)
public void setExpirationBuffer(int expirationBuffer)
When checking access token expiration, it will check if the time to expiration is less than this value(in seconds). Example: Set to 300 to give 5min buffer. Token with Expiry time of 12:04 will say expired when actual time is 12:00 with 5min buffer.
- expirationBuffer
- int
setReadTimeOut(int timeOutMillis)
public void setReadTimeOut(int timeOutMillis)
Sets the maximum time to wait for an input stream read to complete before giving up. Reading will fail with a SocketTimeoutException if the timeout elapses before data becomes available. The default value is 30000.
- timeOutMillis
- int
setSecretKey(byte[] rawKey)
public void setSecretKey(byte[] rawKey)
set raw bytes to derive secretKey to use in encrypt/decrypt. KeySpec algorithm is AES.
- rawKey
- byte []
setSharedPrefPackageName(String packageNameForSharedFile)
public void setSharedPrefPackageName(String packageNameForSharedFile)
Sets package name to use DefaultTokenCacheStore with sharedUserId apps.
- packageNameForSharedFile
- String
setSkipBroker(boolean skip)
public void setSkipBroker(boolean skip)
<xreftitle>Deprecated</xreftitle>
<xrefdescription>
<p>As of release 1.1.14, replaced by <xref uid="com.microsoft.aad.adal.AuthenticationSettings.setUseBroker(boolean)" data-throw-if-not-resolved="false" data-raw-source="setUseBroker(boolean)"></xref></p>
</xrefdescription>
- skip
- boolean
setUseBroker(boolean useBroker)
public void setUseBroker(boolean useBroker)
Set flag to use or skip broker. By default, the flag value is false and ADAL will not talk to broker.
- useBroker
- boolean
Azure SDK for Java geri bildirimi
Azure SDK for Java, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: