java.lang.Object | |
↳ | com.samsung.android.knox.container.AuthenticationConfig |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
This class contains all the configuration information related authenticating a user based on his/her enterprise identity. An admin can use this class to configure lock type using the user's enterprise identity information. The class contains details including identity server configuration and enterprise identity option enforcement specifications. For usage, refer com.samsung.android.knox.container.BasePasswordPolicy#setEnterpriseIdentityAuthentication(AuthenticationConfig).
API level 15 |
MDM 5.4 |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AuthenticationConfig.AuthenticationRequestKeys |
Deprecated
in API level 33 NOTE: This API is not available since Android 11. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ERROR_AUTHENTICATOR_PACKAGE_NOT_INSTALLED |
Deprecated
in API level 33 NOTE: This API is not available since Android 11. |
|||||||||
int | ERROR_AUTHENTICATOR_SIGNATURE_MISMATCH |
Deprecated
in API level 33 NOTE: This API is not available since Android 11. |
|||||||||
int | ERROR_INTERNAL_FAIL |
Deprecated
in API level 33 NOTE: This API is not available since Android 11. |
|||||||||
int | ERROR_INVALID_INPUT |
Deprecated
in API level 33 NOTE: This API is not available since Android 11. |
|||||||||
int | ERROR_USER_NOT_AUTHORIZED |
Deprecated
in API level 33 NOTE: This API is not available since Android 11. |
|||||||||
String | SAMSUNG_KERBEROS_AUTHENTICATOR |
Deprecated
in API level 33 NOTE: This API is not available since Android 11. |
|||||||||
int | SUCCESS |
Deprecated
in API level 33 NOTE: This API is not available since Android 11. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. | |||||||||||
Deprecated
in API level 33
NOTE: This API is not available since Android 11. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
The enterprise identity authenticator package is not installed.
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
The signature of the authenticator provided does not match that of the authenticator installed on the device.
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
Unable to complete request due to internal failure.
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
Received invalid input.
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
The caller doesn't have enough permission or privilege to perform the request
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
Package name of the Samsung Kerberos authenticator.
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
Return value upon success.
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
Constructor with parameters for AuthenticationConfig
enforceRemoteAuthAlways | Flag to indicate that every authentication request by the user
must be completed by the network(remote) server and not by
local verification. The admin should note that if the value is
set to true and the remote authentication server is
unreachable (due to network fail/busy etc.), the user will not
be able to login to the container. |
---|---|
enforceEnterpriseIdentityLock | Flag to indicate whether the Enterprise Identity lock needs to
be enforced on the device. The setting of this flag will lead
to the enforcement of authentication using enterprise ID alone
and the disabling of lock type options(such as
PIN/Password/etc). The default value of this flag is set to
false i.e., by default, enterprise ID is not enforced. |
hideEnterpriseIdentityLock | Flag to indicate whether the Enterprise Identity lock option
needs to be hidden in the list of lock type options. If
set to false , enterprise identity will be shown as one of the
options available to the user for unlocking the container. The
default value of this flag is false , i.e., by default,
enterprise ID is shown in the list of options to the user if the authenticator
package is installed. |
authenticatorPkgName | Package name of the authenticator. The Kerberos authenticator
package name can be obtained by the
SAMSUNG_KERBEROS_AUTHENTICATOR
variable. |
authenticatorPkgSignature | Signature of the authenticator package. The signature value IS OPTIONAL and provides a signature level security check when included. However, the check is ignored if the signature value is not present. |
authenticatorConfig | Bundle containing the configuration values needed to
authenticate users. These include server URL, domain URL,
authentication lifetime etc. The keys for the bundle can be
derived from the
AuthenticationConfig.AuthenticationRequestKeys class. |
An administrator can use this constructor to create authenticationConfig object. |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
Constructor to create Enterprise Identity object with default values
An administrator can use this constructor to create Enterprise Identity object with default values. |
AuthenticationConfig mConfig = new AuthenticationConfig(); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to get Enterprise Identity configuration
An administrator can use this api to get Enterprise Identity configuration |
AuthenticationConfig mConfig = new AuthenticationConfig(); Bundle authenticatorConfig = mConfig.getAuthenticatorConfig(); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to get Enterprise Identity authenticator package name.
An administrator can use this api to get Enterprise Identity authenticator package name. |
AuthenticationConfig mConfig = new AuthenticationConfig(); String authenticatorPkgName = mConfig.getAuthenticatorPkgName(); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to get Enterprise Identity authenticator package signature.
An administrator can use this api to get Enterprise Identity authenticator package signature. |
AuthenticationConfig mConfig = new AuthenticationConfig(); String authenticatorPkgSignature = mConfig.getAuthenticatorPkgSignature(); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to get the current enforcement state of enterprise identity lock.
true
if Enterprise Identity lock option is enforced, else false
.An administrator can use this api to get the current enforcement state of enterprise identity lock. |
AuthenticationConfig mConfig = new AuthenticationConfig(); boolean enforceEnterpriseIdentityLock = mConfig.getEnforceEnterpriseIdentityLock(); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to get the type of Enterprise Identity authentication that has been currently configured.
true
if every unlock attempt must wait for remote (network)
authentication response before unlock, else false
.An administrator can use this api to get the type of Enterprise Identity authentication that has been currently configured. |
AuthenticationConfig mConfig = new AuthenticationConfig(); boolean enforceRemoteAuthAlways = mConfig.getEnforceRemoteAuthAlways(); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to get the current UI state of enterprise identity.
true
if Enterprise Identity lock option is hidden from user
access. false
if Enterprise Identity lock option is not hidden
and available on lock typesAn administrator can use this api to get the current UI state of enterprise identity. |
AuthenticationConfig mConfig = new AuthenticationConfig(); boolean hideEnterpriseIdentityLock = mConfig.getHideEnterpriseIdentityLock(); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to set Enterprise Identity configuration.
authenticatorConfig | Bundle containing the configuration values needed to
authenticate users. These include server URL, domain URL,
authentication lifetime etc. The keys for the bundle can be
derived from the
AuthenticationConfig.AuthenticationRequestKeys class. |
---|
An administrator can use this api to set Enterprise Identity configuration.
Default value is set to null if the API is not called. |
AuthenticationConfig mConfig = new AuthenticationConfig(); Bundle authBundle = new Bundle(); authBundle.putString ("LIBDEFAULTS_DEFAULT_REALM", "SISOIDP.IN"); authBundle.putString ("FEDERATION_SERVER_URL", "idpsrv.sisoidp.in"); mConfig.setAuthenticatorConfig(authBundle); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to set Enterprise Identity authenticator package name.
authenticatorPkgName | package name of the authenticator. |
---|
An administrator can use this api to set Enterprise Identity authenticator package name.
Default package name is null if the method is not called.The SAMSUNG_KERBEROS_AUTHENTICATOR
will be used as the default authenticator for enterprise identity authentication if no package name is provided. |
AuthenticationConfig mConfig = new AuthenticationConfig(); mConfig.setAuthenticatorPkgName("com.samsung.android.testapp"); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to set Enterprise Identity authenticator package signature
authenticatorPkgSignature | Signature of the authenticator package. |
---|
An administrator can use this api to set Enterprise Identity authenticator package signature.
Default value is null if the method is not called. |
AuthenticationConfig mConfig = new AuthenticationConfig(); String mSignature = "3082035430820312a003020102020458491787300b06072a8648ce3804030500307c310b3009060 35504061302494e31123010060355040813094b61726e6174616b61311230100603550407130942" mConfig.setAuthenticatorPkgSignature(mSignature); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to set flag to indicate every unlock request must wait for remote (network) authentication response.
enforceRemoteAuthAlways | Boolean value to suggest every unlock attempt must wait for remote (network) authentication response else local authentication(on device) is sufficient to unlock. |
---|
An administrator can use this api to set flag to indicate every
unlock request must wait for remote (network)authentication response.
Default value is false , i.e., the system will
rely on a local credential check and login the user if it succeeds
(network check will be passively performed if network is available).
Admin should aware that user can't unlock if the value is set to true and
device can't contact Enterprise Identity server ( due to no network,
server down/busy, etc) |
AuthenticationConfig mConfig = new AuthenticationConfig(); mConfig.setEnforceRemoteAuthAlways(true); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to set the state of enterprise identity enforcement.
enforceEnterpriseIdentityLock | Boolean value to enforce the usage of enterprise identity as the only option. |
---|
An administrator can use this api to set the state of enterprise identity enforcement.
If it set to true , the
enterprise identity lock option will be the only option available as
lock type to users and all other options (PIN/Password etc.)
will be unavailable.Default value is false if this API is not called. |
AuthenticationConfig mConfig = new AuthenticationConfig(); mConfig.setForceEnterpriseIdentityLock(true); |
API level 15 |
MDM 5.4 |
Deprecated
in API level 33
NOTE: This API is not available since Android 11.
API to set the UI state of enterprise identity.
hideEnterpriseIdentityLock | Boolean value to allow the enterprise identity option to be hidden in the list. else not hidden |
---|
An administrator can use this api to set the UI state of enterprise identity.
If it set to false , the enterprise identity lock option be shown as part of available
lock types and user is allowed to set enterprise identity as lock type.
Default value is false if this API is not called. |
API level 15 |
MDM 5.4 |