java.lang.Object | |
↳ | com.samsung.android.knox.keystore.PermissionApplicationPrivateKey |
This class contains information needed to allow an application to access private keys without prompting the user for such permission.
API level 11 |
KNOX 2.0 |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The constructor of the permission object, containing the needed values to
give an application the permission of reading private keys from VPN and
Apps keystore.
| |||||||||||
The constructor of the permission object, containing the needed values to
give an application the permission of reading private keys from a specific
credential storage.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
API to get the package name of the administrator that added this
permission.
| |||||||||||
API to get the alias of the private key that was granted to an
application.
| |||||||||||
API to get the host of the server that received this permission.
| |||||||||||
API to get the package name of the application that received this
permission.
| |||||||||||
API to get the port of the server that received this permission.
| |||||||||||
API to get the credential storage name of private key that
was granted to an application.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
The constructor of the permission object, containing the needed values to give an application the permission of reading private keys from VPN and Apps keystore.
packageName | The application to receive the permission of reading private keys. It will not work with any kind of wildcard or regular expression. |
---|---|
host | The server host which the application claims that will
receive the private key. Usually, applications will provide
domain names as host names. The policy will grant access if
the host provided by the application ends with the domain
provided by an administrator.
Example: an application provides
It also accepts a string with one asterisk ( |
port | The server port which the application claims that will
receive the private key. It accepts the value -1
as a wildcard. When this wildcard is used, the application may
request the access providing any port, and it will always
receive the same private key alias. |
alias | The installed private key from VPN and Apps keystore which access will be allowed to the application. |
API level 11 |
KNOX 2.0 |
The constructor of the permission object, containing the needed values to give an application the permission of reading private keys from a specific credential storage.
packageName | The application to receive the permission of reading private keys. It will not work with any kind of wildcard or regular expression. |
---|---|
host | The server host which the application claims that will
receive the private key. Usually, applications will provide
domain names as host names. The policy will grant access if
the host provided by the application ends with the domain
provided by an administrator.
Example: an application provides
It also accepts a string with one asterisk ( |
port | The server port which the application claims that will
receive the private key. It accepts the value -1
as a wildcard. When this wildcard is used, the application may
request the access providing any port, and it will always
receive the same private key alias. |
alias | The installed private key which access will be allowed to the application. |
storageName | The credential storage name of private key which
access will be allowed to the application. Private key will be
accessed from VPN and Apps keystore if null or an
empty String value is passed.The parameter storageName can be retrieved via
name
field of CredentialStorage object. This CredentialStorage object is obtained
using getAvailableCredentialStorages() . |
API level 19 |
KNOX 2.6 |
API to get the package name of the administrator that added this permission.
An administrator can use this API to check which administrator added this permission. |
API level 11 |
KNOX 2.0 |
API to get the alias of the private key that was granted to an application.
An administrator can use this API to check which private key was permitted to an application. |
API level 11 |
KNOX 2.0 |
API to get the host of the server that received this permission.
An administrator can use this API to check which host:port server received this permission. |
API level 11 |
KNOX 2.0 |
API to get the package name of the application that received this permission.
An administrator can use this API to check which application received this permission. |
API level 11 |
KNOX 2.0 |
API to get the port of the server that received this permission.
An administrator can use this API to check which host:port server received this permission. |
API level 11 |
KNOX 2.0 |
API to get the credential storage name of private key that was granted to an application.
An administrator can use this API to check the credential storage name of private key permitted to an application. |
API level 19 |
KNOX 2.6 |