Documentation
¶
Overview ¶
Package keystore provides Go bindings for android.security.keystore.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type BackendBusyException
- type KeyExpiredException
- type KeyGenParameterSpec
- func (m *KeyGenParameterSpec) GetAlgorithmParameterSpec() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetAttestKeyAlias() (string, error)
- func (m *KeyGenParameterSpec) GetAttestationChallenge() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetBlockModes() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetCertificateNotAfter() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetCertificateNotBefore() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetCertificateSerialNumber() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetCertificateSubject() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetDigests() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetEncryptionPaddings() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetKeySize() (int32, error)
- func (m *KeyGenParameterSpec) GetKeyValidityForConsumptionEnd() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetKeyValidityForOriginationEnd() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetKeyValidityStart() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetKeystoreAlias() (string, error)
- func (m *KeyGenParameterSpec) GetMaxUsageCount() (int32, error)
- func (m *KeyGenParameterSpec) GetPurposes() (int32, error)
- func (m *KeyGenParameterSpec) GetSignaturePaddings() (*jni.Object, error)
- func (m *KeyGenParameterSpec) GetUserAuthenticationType() (int32, error)
- func (m *KeyGenParameterSpec) GetUserAuthenticationValidityDurationSeconds() (int32, error)
- func (m *KeyGenParameterSpec) IsDevicePropertiesAttestationIncluded() (bool, error)
- func (m *KeyGenParameterSpec) IsDigestsSpecified() (bool, error)
- func (m *KeyGenParameterSpec) IsInvalidatedByBiometricEnrollment() (bool, error)
- func (m *KeyGenParameterSpec) IsMgf1DigestsSpecified() (bool, error)
- func (m *KeyGenParameterSpec) IsRandomizedEncryptionRequired() (bool, error)
- func (m *KeyGenParameterSpec) IsStrongBoxBacked() (bool, error)
- func (m *KeyGenParameterSpec) IsUnlockedDeviceRequired() (bool, error)
- func (m *KeyGenParameterSpec) IsUserAuthenticationRequired() (bool, error)
- func (m *KeyGenParameterSpec) IsUserAuthenticationValidWhileOnBody() (bool, error)
- func (m *KeyGenParameterSpec) IsUserConfirmationRequired() (bool, error)
- func (m *KeyGenParameterSpec) IsUserPresenceRequired() (bool, error)
- type KeyGenParameterSpecBuilder
- func (m *KeyGenParameterSpecBuilder) Build() (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetAlgorithmParameterSpec(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetAttestKeyAlias(arg0 string) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetAttestationChallenge(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetBlockModes(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetCertificateNotAfter(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetCertificateNotBefore(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetCertificateSerialNumber(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetCertificateSubject(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetDevicePropertiesAttestationIncluded(arg0 bool) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetDigests(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetEncryptionPaddings(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetInvalidatedByBiometricEnrollment(arg0 bool) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetIsStrongBoxBacked(arg0 bool) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetKeySize(arg0 int32) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetKeyValidityEnd(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetKeyValidityForConsumptionEnd(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetKeyValidityForOriginationEnd(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetKeyValidityStart(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetMaxUsageCount(arg0 int32) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetMgf1Digests(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetRandomizedEncryptionRequired(arg0 bool) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetSignaturePaddings(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetUnlockedDeviceRequired(arg0 bool) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetUserAuthenticationParameters(arg0 int32, arg1 int32) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetUserAuthenticationRequired(arg0 bool) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetUserAuthenticationValidWhileOnBody(arg0 bool) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetUserAuthenticationValidityDurationSeconds(arg0 int32) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetUserConfirmationRequired(arg0 bool) (*jni.Object, error)
- func (m *KeyGenParameterSpecBuilder) SetUserPresenceRequired(arg0 bool) (*jni.Object, error)
- type KeyInfo
- func (m *KeyInfo) GetBlockModes() (*jni.Object, error)
- func (m *KeyInfo) GetDigests() (*jni.Object, error)
- func (m *KeyInfo) GetEncryptionPaddings() (*jni.Object, error)
- func (m *KeyInfo) GetKeySize() (int32, error)
- func (m *KeyInfo) GetKeyValidityForConsumptionEnd() (*jni.Object, error)
- func (m *KeyInfo) GetKeyValidityForOriginationEnd() (*jni.Object, error)
- func (m *KeyInfo) GetKeyValidityStart() (*jni.Object, error)
- func (m *KeyInfo) GetKeystoreAlias() (string, error)
- func (m *KeyInfo) GetOrigin() (int32, error)
- func (m *KeyInfo) GetPurposes() (int32, error)
- func (m *KeyInfo) GetRemainingUsageCount() (int32, error)
- func (m *KeyInfo) GetSecurityLevel() (int32, error)
- func (m *KeyInfo) GetSignaturePaddings() (*jni.Object, error)
- func (m *KeyInfo) GetUserAuthenticationType() (int32, error)
- func (m *KeyInfo) GetUserAuthenticationValidityDurationSeconds() (int32, error)
- func (m *KeyInfo) IsInsideSecureHardware() (bool, error)
- func (m *KeyInfo) IsInvalidatedByBiometricEnrollment() (bool, error)
- func (m *KeyInfo) IsTrustedUserPresenceRequired() (bool, error)
- func (m *KeyInfo) IsUserAuthenticationRequired() (bool, error)
- func (m *KeyInfo) IsUserAuthenticationRequirementEnforcedBySecureHardware() (bool, error)
- func (m *KeyInfo) IsUserAuthenticationValidWhileOnBody() (bool, error)
- func (m *KeyInfo) IsUserConfirmationRequired() (bool, error)
- type KeyNotYetValidException
- type KeyPermanentlyInvalidatedException
- type KeyProtection
- func (m *KeyProtection) GetBlockModes() (*jni.Object, error)
- func (m *KeyProtection) GetDigests() (*jni.Object, error)
- func (m *KeyProtection) GetEncryptionPaddings() (*jni.Object, error)
- func (m *KeyProtection) GetKeyValidityForConsumptionEnd() (*jni.Object, error)
- func (m *KeyProtection) GetKeyValidityForOriginationEnd() (*jni.Object, error)
- func (m *KeyProtection) GetKeyValidityStart() (*jni.Object, error)
- func (m *KeyProtection) GetMaxUsageCount() (int32, error)
- func (m *KeyProtection) GetPurposes() (int32, error)
- func (m *KeyProtection) GetSignaturePaddings() (*jni.Object, error)
- func (m *KeyProtection) GetUserAuthenticationType() (int32, error)
- func (m *KeyProtection) GetUserAuthenticationValidityDurationSeconds() (int32, error)
- func (m *KeyProtection) IsDigestsSpecified() (bool, error)
- func (m *KeyProtection) IsInvalidatedByBiometricEnrollment() (bool, error)
- func (m *KeyProtection) IsMgf1DigestsSpecified() (bool, error)
- func (m *KeyProtection) IsRandomizedEncryptionRequired() (bool, error)
- func (m *KeyProtection) IsUnlockedDeviceRequired() (bool, error)
- func (m *KeyProtection) IsUserAuthenticationRequired() (bool, error)
- func (m *KeyProtection) IsUserAuthenticationValidWhileOnBody() (bool, error)
- func (m *KeyProtection) IsUserConfirmationRequired() (bool, error)
- func (m *KeyProtection) IsUserPresenceRequired() (bool, error)
- type KeyProtectionBuilder
- func (m *KeyProtectionBuilder) Build() (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetBlockModes(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetDigests(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetEncryptionPaddings(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetInvalidatedByBiometricEnrollment(arg0 bool) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetIsStrongBoxBacked(arg0 bool) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetKeyValidityEnd(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetKeyValidityForConsumptionEnd(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetKeyValidityForOriginationEnd(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetKeyValidityStart(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetMaxUsageCount(arg0 int32) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetMgf1Digests(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetRandomizedEncryptionRequired(arg0 bool) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetSignaturePaddings(arg0 *jni.Object) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetUnlockedDeviceRequired(arg0 bool) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetUserAuthenticationParameters(arg0 int32, arg1 int32) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetUserAuthenticationRequired(arg0 bool) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetUserAuthenticationValidWhileOnBody(arg0 bool) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetUserAuthenticationValidityDurationSeconds(arg0 int32) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetUserConfirmationRequired(arg0 bool) (*jni.Object, error)
- func (m *KeyProtectionBuilder) SetUserPresenceRequired(arg0 bool) (*jni.Object, error)
- type KeyStoreManager
- func (m *KeyStoreManager) Close()
- func (m *KeyStoreManager) GetGrantedKeyFromId(arg0 int64) (*jni.Object, error)
- func (m *KeyStoreManager) GetGrantedKeyPairFromId(arg0 int64) (*jni.Object, error)
- func (m *KeyStoreManager) GetSupplementaryAttestationInfo(arg0 int32) (*jni.Object, error)
- func (m *KeyStoreManager) GrantKeyAccess(arg0 string, arg1 int32) (int64, error)
- func (m *KeyStoreManager) RevokeKeyAccess(arg0 string, arg1 int32) error
- type SecureKeyImportUnavailableException
- type StrongBoxUnavailableException
- type UserNotAuthenticatedException
- type UserPresenceUnavailableException
- type WrappedKeyEntry
Constants ¶
const ( ModuleHash = consts.ModuleHash AuthBiometricStrong = consts.AuthBiometricStrong AuthDeviceCredential = consts.AuthDeviceCredential OriginGenerated = consts.OriginGenerated OriginImported = consts.OriginImported OriginSecurelyImported = consts.OriginSecurelyImported OriginUnknown = consts.OriginUnknown PurposeAgreeKey = consts.PurposeAgreeKey PurposeAttestKey = consts.PurposeAttestKey PurposeDecrypt = consts.PurposeDecrypt PurposeEncrypt = consts.PurposeEncrypt PurposeSign = consts.PurposeSign PurposeVerify = consts.PurposeVerify PurposeWrapKey = consts.PurposeWrapKey SecurityLevelSoftware = consts.SecurityLevelSoftware SecurityLevelStrongbox = consts.SecurityLevelStrongbox SecurityLevelTrustedEnvironment = consts.SecurityLevelTrustedEnvironment SecurityLevelUnknown = consts.SecurityLevelUnknown SecurityLevelUnknownSecure = consts.SecurityLevelUnknownSecure UnrestrictedUsageCount = consts.UnrestrictedUsageCount )
const ( BlockModeCbc = consts.BlockModeCbc BlockModeCtr = consts.BlockModeCtr BlockModeEcb = consts.BlockModeEcb BlockModeGcm = consts.BlockModeGcm DigestMd5 = consts.DigestMd5 DigestNone = consts.DigestNone DigestSha1 = consts.DigestSha1 DigestSha224 = consts.DigestSha224 DigestSha256 = consts.DigestSha256 DigestSha384 = consts.DigestSha384 DigestSha512 = consts.DigestSha512 EncryptionPaddingNone = consts.EncryptionPaddingNone EncryptionPaddingPkcs7 = consts.EncryptionPaddingPkcs7 EncryptionPaddingRsaOaep = consts.EncryptionPaddingRsaOaep EncryptionPaddingRsaPkcs1 = consts.EncryptionPaddingRsaPkcs1 KeyAlgorithm3des = consts.KeyAlgorithm3des KeyAlgorithmAes = consts.KeyAlgorithmAes KeyAlgorithmEc = consts.KeyAlgorithmEc KeyAlgorithmHmacSha1 = consts.KeyAlgorithmHmacSha1 KeyAlgorithmHmacSha224 = consts.KeyAlgorithmHmacSha224 KeyAlgorithmHmacSha256 = consts.KeyAlgorithmHmacSha256 KeyAlgorithmHmacSha384 = consts.KeyAlgorithmHmacSha384 KeyAlgorithmHmacSha512 = consts.KeyAlgorithmHmacSha512 KeyAlgorithmRsa = consts.KeyAlgorithmRsa SignaturePaddingRsaPkcs1 = consts.SignaturePaddingRsaPkcs1 SignaturePaddingRsaPss = consts.SignaturePaddingRsaPss )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackendBusyException ¶ added in v0.0.7
BackendBusyException wraps android.security.keystore.BackendBusyException.
func NewBackendBusyException ¶ added in v0.0.7
func NewBackendBusyException(vm *jni.VM, arg0 int64) (*BackendBusyException, error)
NewBackendBusyException creates a new android.security.keystore.BackendBusyException instance.
func (*BackendBusyException) GetBackOffHintMillis ¶ added in v0.0.7
func (m *BackendBusyException) GetBackOffHintMillis() (int64, error)
GetBackOffHintMillis calls android.security.keystore.BackendBusyException.getBackOffHintMillis.
type KeyExpiredException ¶ added in v0.0.7
KeyExpiredException wraps android.security.keystore.KeyExpiredException.
func NewKeyExpiredException ¶ added in v0.0.7
func NewKeyExpiredException(vm *jni.VM) (*KeyExpiredException, error)
NewKeyExpiredException creates a new android.security.keystore.KeyExpiredException instance.
type KeyGenParameterSpec ¶ added in v0.0.7
KeyGenParameterSpec wraps android.security.keystore.KeyGenParameterSpec.
func (*KeyGenParameterSpec) GetAlgorithmParameterSpec ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetAlgorithmParameterSpec() (*jni.Object, error)
GetAlgorithmParameterSpec calls android.security.keystore.KeyGenParameterSpec.getAlgorithmParameterSpec.
func (*KeyGenParameterSpec) GetAttestKeyAlias ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetAttestKeyAlias() (string, error)
GetAttestKeyAlias calls android.security.keystore.KeyGenParameterSpec.getAttestKeyAlias.
func (*KeyGenParameterSpec) GetAttestationChallenge ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetAttestationChallenge() (*jni.Object, error)
GetAttestationChallenge calls android.security.keystore.KeyGenParameterSpec.getAttestationChallenge.
func (*KeyGenParameterSpec) GetBlockModes ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetBlockModes() (*jni.Object, error)
GetBlockModes calls android.security.keystore.KeyGenParameterSpec.getBlockModes.
func (*KeyGenParameterSpec) GetCertificateNotAfter ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetCertificateNotAfter() (*jni.Object, error)
GetCertificateNotAfter calls android.security.keystore.KeyGenParameterSpec.getCertificateNotAfter.
func (*KeyGenParameterSpec) GetCertificateNotBefore ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetCertificateNotBefore() (*jni.Object, error)
GetCertificateNotBefore calls android.security.keystore.KeyGenParameterSpec.getCertificateNotBefore.
func (*KeyGenParameterSpec) GetCertificateSerialNumber ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetCertificateSerialNumber() (*jni.Object, error)
GetCertificateSerialNumber calls android.security.keystore.KeyGenParameterSpec.getCertificateSerialNumber.
func (*KeyGenParameterSpec) GetCertificateSubject ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetCertificateSubject() (*jni.Object, error)
GetCertificateSubject calls android.security.keystore.KeyGenParameterSpec.getCertificateSubject.
func (*KeyGenParameterSpec) GetDigests ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetDigests() (*jni.Object, error)
GetDigests calls android.security.keystore.KeyGenParameterSpec.getDigests.
func (*KeyGenParameterSpec) GetEncryptionPaddings ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetEncryptionPaddings() (*jni.Object, error)
GetEncryptionPaddings calls android.security.keystore.KeyGenParameterSpec.getEncryptionPaddings.
func (*KeyGenParameterSpec) GetKeySize ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetKeySize() (int32, error)
GetKeySize calls android.security.keystore.KeyGenParameterSpec.getKeySize.
func (*KeyGenParameterSpec) GetKeyValidityForConsumptionEnd ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetKeyValidityForConsumptionEnd() (*jni.Object, error)
GetKeyValidityForConsumptionEnd calls android.security.keystore.KeyGenParameterSpec.getKeyValidityForConsumptionEnd.
func (*KeyGenParameterSpec) GetKeyValidityForOriginationEnd ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetKeyValidityForOriginationEnd() (*jni.Object, error)
GetKeyValidityForOriginationEnd calls android.security.keystore.KeyGenParameterSpec.getKeyValidityForOriginationEnd.
func (*KeyGenParameterSpec) GetKeyValidityStart ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetKeyValidityStart() (*jni.Object, error)
GetKeyValidityStart calls android.security.keystore.KeyGenParameterSpec.getKeyValidityStart.
func (*KeyGenParameterSpec) GetKeystoreAlias ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetKeystoreAlias() (string, error)
GetKeystoreAlias calls android.security.keystore.KeyGenParameterSpec.getKeystoreAlias.
func (*KeyGenParameterSpec) GetMaxUsageCount ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetMaxUsageCount() (int32, error)
GetMaxUsageCount calls android.security.keystore.KeyGenParameterSpec.getMaxUsageCount.
func (*KeyGenParameterSpec) GetPurposes ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetPurposes() (int32, error)
GetPurposes calls android.security.keystore.KeyGenParameterSpec.getPurposes.
func (*KeyGenParameterSpec) GetSignaturePaddings ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetSignaturePaddings() (*jni.Object, error)
GetSignaturePaddings calls android.security.keystore.KeyGenParameterSpec.getSignaturePaddings.
func (*KeyGenParameterSpec) GetUserAuthenticationType ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetUserAuthenticationType() (int32, error)
GetUserAuthenticationType calls android.security.keystore.KeyGenParameterSpec.getUserAuthenticationType.
func (*KeyGenParameterSpec) GetUserAuthenticationValidityDurationSeconds ¶ added in v0.0.7
func (m *KeyGenParameterSpec) GetUserAuthenticationValidityDurationSeconds() (int32, error)
GetUserAuthenticationValidityDurationSeconds calls android.security.keystore.KeyGenParameterSpec.getUserAuthenticationValidityDurationSeconds.
func (*KeyGenParameterSpec) IsDevicePropertiesAttestationIncluded ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsDevicePropertiesAttestationIncluded() (bool, error)
IsDevicePropertiesAttestationIncluded calls android.security.keystore.KeyGenParameterSpec.isDevicePropertiesAttestationIncluded.
func (*KeyGenParameterSpec) IsDigestsSpecified ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsDigestsSpecified() (bool, error)
IsDigestsSpecified calls android.security.keystore.KeyGenParameterSpec.isDigestsSpecified.
func (*KeyGenParameterSpec) IsInvalidatedByBiometricEnrollment ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsInvalidatedByBiometricEnrollment() (bool, error)
IsInvalidatedByBiometricEnrollment calls android.security.keystore.KeyGenParameterSpec.isInvalidatedByBiometricEnrollment.
func (*KeyGenParameterSpec) IsMgf1DigestsSpecified ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsMgf1DigestsSpecified() (bool, error)
IsMgf1DigestsSpecified calls android.security.keystore.KeyGenParameterSpec.isMgf1DigestsSpecified.
func (*KeyGenParameterSpec) IsRandomizedEncryptionRequired ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsRandomizedEncryptionRequired() (bool, error)
IsRandomizedEncryptionRequired calls android.security.keystore.KeyGenParameterSpec.isRandomizedEncryptionRequired.
func (*KeyGenParameterSpec) IsStrongBoxBacked ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsStrongBoxBacked() (bool, error)
IsStrongBoxBacked calls android.security.keystore.KeyGenParameterSpec.isStrongBoxBacked.
func (*KeyGenParameterSpec) IsUnlockedDeviceRequired ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsUnlockedDeviceRequired() (bool, error)
IsUnlockedDeviceRequired calls android.security.keystore.KeyGenParameterSpec.isUnlockedDeviceRequired.
func (*KeyGenParameterSpec) IsUserAuthenticationRequired ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsUserAuthenticationRequired() (bool, error)
IsUserAuthenticationRequired calls android.security.keystore.KeyGenParameterSpec.isUserAuthenticationRequired.
func (*KeyGenParameterSpec) IsUserAuthenticationValidWhileOnBody ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsUserAuthenticationValidWhileOnBody() (bool, error)
IsUserAuthenticationValidWhileOnBody calls android.security.keystore.KeyGenParameterSpec.isUserAuthenticationValidWhileOnBody.
func (*KeyGenParameterSpec) IsUserConfirmationRequired ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsUserConfirmationRequired() (bool, error)
IsUserConfirmationRequired calls android.security.keystore.KeyGenParameterSpec.isUserConfirmationRequired.
func (*KeyGenParameterSpec) IsUserPresenceRequired ¶ added in v0.0.7
func (m *KeyGenParameterSpec) IsUserPresenceRequired() (bool, error)
IsUserPresenceRequired calls android.security.keystore.KeyGenParameterSpec.isUserPresenceRequired.
type KeyGenParameterSpecBuilder ¶ added in v0.0.7
KeyGenParameterSpecBuilder wraps android.security.keystore.KeyGenParameterSpec$Builder.
func (*KeyGenParameterSpecBuilder) Build ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) Build() (*jni.Object, error)
Build calls android.security.keystore.KeyGenParameterSpec$Builder.build.
func (*KeyGenParameterSpecBuilder) SetAlgorithmParameterSpec ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetAlgorithmParameterSpec(arg0 *jni.Object) (*jni.Object, error)
SetAlgorithmParameterSpec calls android.security.keystore.KeyGenParameterSpec$Builder.setAlgorithmParameterSpec.
func (*KeyGenParameterSpecBuilder) SetAttestKeyAlias ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetAttestKeyAlias(arg0 string) (*jni.Object, error)
SetAttestKeyAlias calls android.security.keystore.KeyGenParameterSpec$Builder.setAttestKeyAlias.
func (*KeyGenParameterSpecBuilder) SetAttestationChallenge ¶ added in v0.0.7
SetAttestationChallenge calls android.security.keystore.KeyGenParameterSpec$Builder.setAttestationChallenge.
func (*KeyGenParameterSpecBuilder) SetBlockModes ¶ added in v0.0.7
SetBlockModes calls android.security.keystore.KeyGenParameterSpec$Builder.setBlockModes.
func (*KeyGenParameterSpecBuilder) SetCertificateNotAfter ¶ added in v0.0.7
SetCertificateNotAfter calls android.security.keystore.KeyGenParameterSpec$Builder.setCertificateNotAfter.
func (*KeyGenParameterSpecBuilder) SetCertificateNotBefore ¶ added in v0.0.7
SetCertificateNotBefore calls android.security.keystore.KeyGenParameterSpec$Builder.setCertificateNotBefore.
func (*KeyGenParameterSpecBuilder) SetCertificateSerialNumber ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetCertificateSerialNumber(arg0 *jni.Object) (*jni.Object, error)
SetCertificateSerialNumber calls android.security.keystore.KeyGenParameterSpec$Builder.setCertificateSerialNumber.
func (*KeyGenParameterSpecBuilder) SetCertificateSubject ¶ added in v0.0.7
SetCertificateSubject calls android.security.keystore.KeyGenParameterSpec$Builder.setCertificateSubject.
func (*KeyGenParameterSpecBuilder) SetDevicePropertiesAttestationIncluded ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetDevicePropertiesAttestationIncluded(arg0 bool) (*jni.Object, error)
SetDevicePropertiesAttestationIncluded calls android.security.keystore.KeyGenParameterSpec$Builder.setDevicePropertiesAttestationIncluded.
func (*KeyGenParameterSpecBuilder) SetDigests ¶ added in v0.0.7
SetDigests calls android.security.keystore.KeyGenParameterSpec$Builder.setDigests.
func (*KeyGenParameterSpecBuilder) SetEncryptionPaddings ¶ added in v0.0.7
SetEncryptionPaddings calls android.security.keystore.KeyGenParameterSpec$Builder.setEncryptionPaddings.
func (*KeyGenParameterSpecBuilder) SetInvalidatedByBiometricEnrollment ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetInvalidatedByBiometricEnrollment(arg0 bool) (*jni.Object, error)
SetInvalidatedByBiometricEnrollment calls android.security.keystore.KeyGenParameterSpec$Builder.setInvalidatedByBiometricEnrollment.
func (*KeyGenParameterSpecBuilder) SetIsStrongBoxBacked ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetIsStrongBoxBacked(arg0 bool) (*jni.Object, error)
SetIsStrongBoxBacked calls android.security.keystore.KeyGenParameterSpec$Builder.setIsStrongBoxBacked.
func (*KeyGenParameterSpecBuilder) SetKeySize ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetKeySize(arg0 int32) (*jni.Object, error)
SetKeySize calls android.security.keystore.KeyGenParameterSpec$Builder.setKeySize.
func (*KeyGenParameterSpecBuilder) SetKeyValidityEnd ¶ added in v0.0.7
SetKeyValidityEnd calls android.security.keystore.KeyGenParameterSpec$Builder.setKeyValidityEnd.
func (*KeyGenParameterSpecBuilder) SetKeyValidityForConsumptionEnd ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetKeyValidityForConsumptionEnd(arg0 *jni.Object) (*jni.Object, error)
SetKeyValidityForConsumptionEnd calls android.security.keystore.KeyGenParameterSpec$Builder.setKeyValidityForConsumptionEnd.
func (*KeyGenParameterSpecBuilder) SetKeyValidityForOriginationEnd ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetKeyValidityForOriginationEnd(arg0 *jni.Object) (*jni.Object, error)
SetKeyValidityForOriginationEnd calls android.security.keystore.KeyGenParameterSpec$Builder.setKeyValidityForOriginationEnd.
func (*KeyGenParameterSpecBuilder) SetKeyValidityStart ¶ added in v0.0.7
SetKeyValidityStart calls android.security.keystore.KeyGenParameterSpec$Builder.setKeyValidityStart.
func (*KeyGenParameterSpecBuilder) SetMaxUsageCount ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetMaxUsageCount(arg0 int32) (*jni.Object, error)
SetMaxUsageCount calls android.security.keystore.KeyGenParameterSpec$Builder.setMaxUsageCount.
func (*KeyGenParameterSpecBuilder) SetMgf1Digests ¶ added in v0.0.7
SetMgf1Digests calls android.security.keystore.KeyGenParameterSpec$Builder.setMgf1Digests.
func (*KeyGenParameterSpecBuilder) SetRandomizedEncryptionRequired ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetRandomizedEncryptionRequired(arg0 bool) (*jni.Object, error)
SetRandomizedEncryptionRequired calls android.security.keystore.KeyGenParameterSpec$Builder.setRandomizedEncryptionRequired.
func (*KeyGenParameterSpecBuilder) SetSignaturePaddings ¶ added in v0.0.7
SetSignaturePaddings calls android.security.keystore.KeyGenParameterSpec$Builder.setSignaturePaddings.
func (*KeyGenParameterSpecBuilder) SetUnlockedDeviceRequired ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetUnlockedDeviceRequired(arg0 bool) (*jni.Object, error)
SetUnlockedDeviceRequired calls android.security.keystore.KeyGenParameterSpec$Builder.setUnlockedDeviceRequired.
func (*KeyGenParameterSpecBuilder) SetUserAuthenticationParameters ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetUserAuthenticationParameters(arg0 int32, arg1 int32) (*jni.Object, error)
SetUserAuthenticationParameters calls android.security.keystore.KeyGenParameterSpec$Builder.setUserAuthenticationParameters.
func (*KeyGenParameterSpecBuilder) SetUserAuthenticationRequired ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetUserAuthenticationRequired(arg0 bool) (*jni.Object, error)
SetUserAuthenticationRequired calls android.security.keystore.KeyGenParameterSpec$Builder.setUserAuthenticationRequired.
func (*KeyGenParameterSpecBuilder) SetUserAuthenticationValidWhileOnBody ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetUserAuthenticationValidWhileOnBody(arg0 bool) (*jni.Object, error)
SetUserAuthenticationValidWhileOnBody calls android.security.keystore.KeyGenParameterSpec$Builder.setUserAuthenticationValidWhileOnBody.
func (*KeyGenParameterSpecBuilder) SetUserAuthenticationValidityDurationSeconds ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetUserAuthenticationValidityDurationSeconds(arg0 int32) (*jni.Object, error)
SetUserAuthenticationValidityDurationSeconds calls android.security.keystore.KeyGenParameterSpec$Builder.setUserAuthenticationValidityDurationSeconds.
func (*KeyGenParameterSpecBuilder) SetUserConfirmationRequired ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetUserConfirmationRequired(arg0 bool) (*jni.Object, error)
SetUserConfirmationRequired calls android.security.keystore.KeyGenParameterSpec$Builder.setUserConfirmationRequired.
func (*KeyGenParameterSpecBuilder) SetUserPresenceRequired ¶ added in v0.0.7
func (m *KeyGenParameterSpecBuilder) SetUserPresenceRequired(arg0 bool) (*jni.Object, error)
SetUserPresenceRequired calls android.security.keystore.KeyGenParameterSpec$Builder.setUserPresenceRequired.
type KeyInfo ¶ added in v0.0.7
KeyInfo wraps android.security.keystore.KeyInfo.
func (*KeyInfo) GetBlockModes ¶ added in v0.0.7
GetBlockModes calls android.security.keystore.KeyInfo.getBlockModes.
func (*KeyInfo) GetDigests ¶ added in v0.0.7
GetDigests calls android.security.keystore.KeyInfo.getDigests.
func (*KeyInfo) GetEncryptionPaddings ¶ added in v0.0.7
GetEncryptionPaddings calls android.security.keystore.KeyInfo.getEncryptionPaddings.
func (*KeyInfo) GetKeySize ¶ added in v0.0.7
GetKeySize calls android.security.keystore.KeyInfo.getKeySize.
func (*KeyInfo) GetKeyValidityForConsumptionEnd ¶ added in v0.0.7
GetKeyValidityForConsumptionEnd calls android.security.keystore.KeyInfo.getKeyValidityForConsumptionEnd.
func (*KeyInfo) GetKeyValidityForOriginationEnd ¶ added in v0.0.7
GetKeyValidityForOriginationEnd calls android.security.keystore.KeyInfo.getKeyValidityForOriginationEnd.
func (*KeyInfo) GetKeyValidityStart ¶ added in v0.0.7
GetKeyValidityStart calls android.security.keystore.KeyInfo.getKeyValidityStart.
func (*KeyInfo) GetKeystoreAlias ¶ added in v0.0.7
GetKeystoreAlias calls android.security.keystore.KeyInfo.getKeystoreAlias.
func (*KeyInfo) GetOrigin ¶ added in v0.0.7
GetOrigin calls android.security.keystore.KeyInfo.getOrigin.
func (*KeyInfo) GetPurposes ¶ added in v0.0.7
GetPurposes calls android.security.keystore.KeyInfo.getPurposes.
func (*KeyInfo) GetRemainingUsageCount ¶ added in v0.0.7
GetRemainingUsageCount calls android.security.keystore.KeyInfo.getRemainingUsageCount.
func (*KeyInfo) GetSecurityLevel ¶ added in v0.0.7
GetSecurityLevel calls android.security.keystore.KeyInfo.getSecurityLevel.
func (*KeyInfo) GetSignaturePaddings ¶ added in v0.0.7
GetSignaturePaddings calls android.security.keystore.KeyInfo.getSignaturePaddings.
func (*KeyInfo) GetUserAuthenticationType ¶ added in v0.0.7
GetUserAuthenticationType calls android.security.keystore.KeyInfo.getUserAuthenticationType.
func (*KeyInfo) GetUserAuthenticationValidityDurationSeconds ¶ added in v0.0.7
GetUserAuthenticationValidityDurationSeconds calls android.security.keystore.KeyInfo.getUserAuthenticationValidityDurationSeconds.
func (*KeyInfo) IsInsideSecureHardware ¶ added in v0.0.7
IsInsideSecureHardware calls android.security.keystore.KeyInfo.isInsideSecureHardware.
func (*KeyInfo) IsInvalidatedByBiometricEnrollment ¶ added in v0.0.7
IsInvalidatedByBiometricEnrollment calls android.security.keystore.KeyInfo.isInvalidatedByBiometricEnrollment.
func (*KeyInfo) IsTrustedUserPresenceRequired ¶ added in v0.0.7
IsTrustedUserPresenceRequired calls android.security.keystore.KeyInfo.isTrustedUserPresenceRequired.
func (*KeyInfo) IsUserAuthenticationRequired ¶ added in v0.0.7
IsUserAuthenticationRequired calls android.security.keystore.KeyInfo.isUserAuthenticationRequired.
func (*KeyInfo) IsUserAuthenticationRequirementEnforcedBySecureHardware ¶ added in v0.0.7
IsUserAuthenticationRequirementEnforcedBySecureHardware calls android.security.keystore.KeyInfo.isUserAuthenticationRequirementEnforcedBySecureHardware.
func (*KeyInfo) IsUserAuthenticationValidWhileOnBody ¶ added in v0.0.7
IsUserAuthenticationValidWhileOnBody calls android.security.keystore.KeyInfo.isUserAuthenticationValidWhileOnBody.
func (*KeyInfo) IsUserConfirmationRequired ¶ added in v0.0.7
IsUserConfirmationRequired calls android.security.keystore.KeyInfo.isUserConfirmationRequired.
type KeyNotYetValidException ¶ added in v0.0.7
KeyNotYetValidException wraps android.security.keystore.KeyNotYetValidException.
func NewKeyNotYetValidException ¶ added in v0.0.7
func NewKeyNotYetValidException(vm *jni.VM) (*KeyNotYetValidException, error)
NewKeyNotYetValidException creates a new android.security.keystore.KeyNotYetValidException instance.
type KeyPermanentlyInvalidatedException ¶ added in v0.0.7
KeyPermanentlyInvalidatedException wraps android.security.keystore.KeyPermanentlyInvalidatedException.
func NewKeyPermanentlyInvalidatedException ¶ added in v0.0.7
func NewKeyPermanentlyInvalidatedException(vm *jni.VM) (*KeyPermanentlyInvalidatedException, error)
NewKeyPermanentlyInvalidatedException creates a new android.security.keystore.KeyPermanentlyInvalidatedException instance.
type KeyProtection ¶ added in v0.0.7
KeyProtection wraps android.security.keystore.KeyProtection.
func (*KeyProtection) GetBlockModes ¶ added in v0.0.7
func (m *KeyProtection) GetBlockModes() (*jni.Object, error)
GetBlockModes calls android.security.keystore.KeyProtection.getBlockModes.
func (*KeyProtection) GetDigests ¶ added in v0.0.7
func (m *KeyProtection) GetDigests() (*jni.Object, error)
GetDigests calls android.security.keystore.KeyProtection.getDigests.
func (*KeyProtection) GetEncryptionPaddings ¶ added in v0.0.7
func (m *KeyProtection) GetEncryptionPaddings() (*jni.Object, error)
GetEncryptionPaddings calls android.security.keystore.KeyProtection.getEncryptionPaddings.
func (*KeyProtection) GetKeyValidityForConsumptionEnd ¶ added in v0.0.7
func (m *KeyProtection) GetKeyValidityForConsumptionEnd() (*jni.Object, error)
GetKeyValidityForConsumptionEnd calls android.security.keystore.KeyProtection.getKeyValidityForConsumptionEnd.
func (*KeyProtection) GetKeyValidityForOriginationEnd ¶ added in v0.0.7
func (m *KeyProtection) GetKeyValidityForOriginationEnd() (*jni.Object, error)
GetKeyValidityForOriginationEnd calls android.security.keystore.KeyProtection.getKeyValidityForOriginationEnd.
func (*KeyProtection) GetKeyValidityStart ¶ added in v0.0.7
func (m *KeyProtection) GetKeyValidityStart() (*jni.Object, error)
GetKeyValidityStart calls android.security.keystore.KeyProtection.getKeyValidityStart.
func (*KeyProtection) GetMaxUsageCount ¶ added in v0.0.7
func (m *KeyProtection) GetMaxUsageCount() (int32, error)
GetMaxUsageCount calls android.security.keystore.KeyProtection.getMaxUsageCount.
func (*KeyProtection) GetPurposes ¶ added in v0.0.7
func (m *KeyProtection) GetPurposes() (int32, error)
GetPurposes calls android.security.keystore.KeyProtection.getPurposes.
func (*KeyProtection) GetSignaturePaddings ¶ added in v0.0.7
func (m *KeyProtection) GetSignaturePaddings() (*jni.Object, error)
GetSignaturePaddings calls android.security.keystore.KeyProtection.getSignaturePaddings.
func (*KeyProtection) GetUserAuthenticationType ¶ added in v0.0.7
func (m *KeyProtection) GetUserAuthenticationType() (int32, error)
GetUserAuthenticationType calls android.security.keystore.KeyProtection.getUserAuthenticationType.
func (*KeyProtection) GetUserAuthenticationValidityDurationSeconds ¶ added in v0.0.7
func (m *KeyProtection) GetUserAuthenticationValidityDurationSeconds() (int32, error)
GetUserAuthenticationValidityDurationSeconds calls android.security.keystore.KeyProtection.getUserAuthenticationValidityDurationSeconds.
func (*KeyProtection) IsDigestsSpecified ¶ added in v0.0.7
func (m *KeyProtection) IsDigestsSpecified() (bool, error)
IsDigestsSpecified calls android.security.keystore.KeyProtection.isDigestsSpecified.
func (*KeyProtection) IsInvalidatedByBiometricEnrollment ¶ added in v0.0.7
func (m *KeyProtection) IsInvalidatedByBiometricEnrollment() (bool, error)
IsInvalidatedByBiometricEnrollment calls android.security.keystore.KeyProtection.isInvalidatedByBiometricEnrollment.
func (*KeyProtection) IsMgf1DigestsSpecified ¶ added in v0.0.7
func (m *KeyProtection) IsMgf1DigestsSpecified() (bool, error)
IsMgf1DigestsSpecified calls android.security.keystore.KeyProtection.isMgf1DigestsSpecified.
func (*KeyProtection) IsRandomizedEncryptionRequired ¶ added in v0.0.7
func (m *KeyProtection) IsRandomizedEncryptionRequired() (bool, error)
IsRandomizedEncryptionRequired calls android.security.keystore.KeyProtection.isRandomizedEncryptionRequired.
func (*KeyProtection) IsUnlockedDeviceRequired ¶ added in v0.0.7
func (m *KeyProtection) IsUnlockedDeviceRequired() (bool, error)
IsUnlockedDeviceRequired calls android.security.keystore.KeyProtection.isUnlockedDeviceRequired.
func (*KeyProtection) IsUserAuthenticationRequired ¶ added in v0.0.7
func (m *KeyProtection) IsUserAuthenticationRequired() (bool, error)
IsUserAuthenticationRequired calls android.security.keystore.KeyProtection.isUserAuthenticationRequired.
func (*KeyProtection) IsUserAuthenticationValidWhileOnBody ¶ added in v0.0.7
func (m *KeyProtection) IsUserAuthenticationValidWhileOnBody() (bool, error)
IsUserAuthenticationValidWhileOnBody calls android.security.keystore.KeyProtection.isUserAuthenticationValidWhileOnBody.
func (*KeyProtection) IsUserConfirmationRequired ¶ added in v0.0.7
func (m *KeyProtection) IsUserConfirmationRequired() (bool, error)
IsUserConfirmationRequired calls android.security.keystore.KeyProtection.isUserConfirmationRequired.
func (*KeyProtection) IsUserPresenceRequired ¶ added in v0.0.7
func (m *KeyProtection) IsUserPresenceRequired() (bool, error)
IsUserPresenceRequired calls android.security.keystore.KeyProtection.isUserPresenceRequired.
type KeyProtectionBuilder ¶ added in v0.0.7
KeyProtectionBuilder wraps android.security.keystore.KeyProtection$Builder.
func (*KeyProtectionBuilder) Build ¶ added in v0.0.7
func (m *KeyProtectionBuilder) Build() (*jni.Object, error)
Build calls android.security.keystore.KeyProtection$Builder.build.
func (*KeyProtectionBuilder) SetBlockModes ¶ added in v0.0.7
SetBlockModes calls android.security.keystore.KeyProtection$Builder.setBlockModes.
func (*KeyProtectionBuilder) SetDigests ¶ added in v0.0.7
SetDigests calls android.security.keystore.KeyProtection$Builder.setDigests.
func (*KeyProtectionBuilder) SetEncryptionPaddings ¶ added in v0.0.7
SetEncryptionPaddings calls android.security.keystore.KeyProtection$Builder.setEncryptionPaddings.
func (*KeyProtectionBuilder) SetInvalidatedByBiometricEnrollment ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetInvalidatedByBiometricEnrollment(arg0 bool) (*jni.Object, error)
SetInvalidatedByBiometricEnrollment calls android.security.keystore.KeyProtection$Builder.setInvalidatedByBiometricEnrollment.
func (*KeyProtectionBuilder) SetIsStrongBoxBacked ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetIsStrongBoxBacked(arg0 bool) (*jni.Object, error)
SetIsStrongBoxBacked calls android.security.keystore.KeyProtection$Builder.setIsStrongBoxBacked.
func (*KeyProtectionBuilder) SetKeyValidityEnd ¶ added in v0.0.7
SetKeyValidityEnd calls android.security.keystore.KeyProtection$Builder.setKeyValidityEnd.
func (*KeyProtectionBuilder) SetKeyValidityForConsumptionEnd ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetKeyValidityForConsumptionEnd(arg0 *jni.Object) (*jni.Object, error)
SetKeyValidityForConsumptionEnd calls android.security.keystore.KeyProtection$Builder.setKeyValidityForConsumptionEnd.
func (*KeyProtectionBuilder) SetKeyValidityForOriginationEnd ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetKeyValidityForOriginationEnd(arg0 *jni.Object) (*jni.Object, error)
SetKeyValidityForOriginationEnd calls android.security.keystore.KeyProtection$Builder.setKeyValidityForOriginationEnd.
func (*KeyProtectionBuilder) SetKeyValidityStart ¶ added in v0.0.7
SetKeyValidityStart calls android.security.keystore.KeyProtection$Builder.setKeyValidityStart.
func (*KeyProtectionBuilder) SetMaxUsageCount ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetMaxUsageCount(arg0 int32) (*jni.Object, error)
SetMaxUsageCount calls android.security.keystore.KeyProtection$Builder.setMaxUsageCount.
func (*KeyProtectionBuilder) SetMgf1Digests ¶ added in v0.0.7
SetMgf1Digests calls android.security.keystore.KeyProtection$Builder.setMgf1Digests.
func (*KeyProtectionBuilder) SetRandomizedEncryptionRequired ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetRandomizedEncryptionRequired(arg0 bool) (*jni.Object, error)
SetRandomizedEncryptionRequired calls android.security.keystore.KeyProtection$Builder.setRandomizedEncryptionRequired.
func (*KeyProtectionBuilder) SetSignaturePaddings ¶ added in v0.0.7
SetSignaturePaddings calls android.security.keystore.KeyProtection$Builder.setSignaturePaddings.
func (*KeyProtectionBuilder) SetUnlockedDeviceRequired ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetUnlockedDeviceRequired(arg0 bool) (*jni.Object, error)
SetUnlockedDeviceRequired calls android.security.keystore.KeyProtection$Builder.setUnlockedDeviceRequired.
func (*KeyProtectionBuilder) SetUserAuthenticationParameters ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetUserAuthenticationParameters(arg0 int32, arg1 int32) (*jni.Object, error)
SetUserAuthenticationParameters calls android.security.keystore.KeyProtection$Builder.setUserAuthenticationParameters.
func (*KeyProtectionBuilder) SetUserAuthenticationRequired ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetUserAuthenticationRequired(arg0 bool) (*jni.Object, error)
SetUserAuthenticationRequired calls android.security.keystore.KeyProtection$Builder.setUserAuthenticationRequired.
func (*KeyProtectionBuilder) SetUserAuthenticationValidWhileOnBody ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetUserAuthenticationValidWhileOnBody(arg0 bool) (*jni.Object, error)
SetUserAuthenticationValidWhileOnBody calls android.security.keystore.KeyProtection$Builder.setUserAuthenticationValidWhileOnBody.
func (*KeyProtectionBuilder) SetUserAuthenticationValidityDurationSeconds ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetUserAuthenticationValidityDurationSeconds(arg0 int32) (*jni.Object, error)
SetUserAuthenticationValidityDurationSeconds calls android.security.keystore.KeyProtection$Builder.setUserAuthenticationValidityDurationSeconds.
func (*KeyProtectionBuilder) SetUserConfirmationRequired ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetUserConfirmationRequired(arg0 bool) (*jni.Object, error)
SetUserConfirmationRequired calls android.security.keystore.KeyProtection$Builder.setUserConfirmationRequired.
func (*KeyProtectionBuilder) SetUserPresenceRequired ¶ added in v0.0.7
func (m *KeyProtectionBuilder) SetUserPresenceRequired(arg0 bool) (*jni.Object, error)
SetUserPresenceRequired calls android.security.keystore.KeyProtection$Builder.setUserPresenceRequired.
type KeyStoreManager ¶ added in v0.0.7
KeyStoreManager wraps android.security.keystore.KeyStoreManager.
func NewKeyStoreManager ¶ added in v0.0.7
func NewKeyStoreManager(ctx *app.Context) (*KeyStoreManager, error)
NewKeyStoreManager obtains android.security.keystore.KeyStoreManager from the Android system service manager.
func (*KeyStoreManager) Close ¶ added in v0.0.7
func (m *KeyStoreManager) Close()
Close releases the global reference to the underlying Java object. After Close, the KeyStoreManager must not be used.
func (*KeyStoreManager) GetGrantedKeyFromId ¶ added in v0.0.7
func (m *KeyStoreManager) GetGrantedKeyFromId(arg0 int64) (*jni.Object, error)
GetGrantedKeyFromId calls android.security.keystore.KeyStoreManager.getGrantedKeyFromId.
func (*KeyStoreManager) GetGrantedKeyPairFromId ¶ added in v0.0.7
func (m *KeyStoreManager) GetGrantedKeyPairFromId(arg0 int64) (*jni.Object, error)
GetGrantedKeyPairFromId calls android.security.keystore.KeyStoreManager.getGrantedKeyPairFromId.
func (*KeyStoreManager) GetSupplementaryAttestationInfo ¶ added in v0.0.7
func (m *KeyStoreManager) GetSupplementaryAttestationInfo(arg0 int32) (*jni.Object, error)
GetSupplementaryAttestationInfo calls android.security.keystore.KeyStoreManager.getSupplementaryAttestationInfo.
func (*KeyStoreManager) GrantKeyAccess ¶ added in v0.0.7
func (m *KeyStoreManager) GrantKeyAccess(arg0 string, arg1 int32) (int64, error)
GrantKeyAccess calls android.security.keystore.KeyStoreManager.grantKeyAccess.
func (*KeyStoreManager) RevokeKeyAccess ¶ added in v0.0.7
func (m *KeyStoreManager) RevokeKeyAccess(arg0 string, arg1 int32) error
RevokeKeyAccess calls android.security.keystore.KeyStoreManager.revokeKeyAccess.
type SecureKeyImportUnavailableException ¶ added in v0.0.7
type SecureKeyImportUnavailableException struct {
}
SecureKeyImportUnavailableException wraps android.security.keystore.SecureKeyImportUnavailableException.
func NewSecureKeyImportUnavailableException ¶ added in v0.0.7
func NewSecureKeyImportUnavailableException(vm *jni.VM) (*SecureKeyImportUnavailableException, error)
NewSecureKeyImportUnavailableException creates a new android.security.keystore.SecureKeyImportUnavailableException instance.
type StrongBoxUnavailableException ¶ added in v0.0.7
type StrongBoxUnavailableException struct {
}
StrongBoxUnavailableException wraps android.security.keystore.StrongBoxUnavailableException.
func NewStrongBoxUnavailableException ¶ added in v0.0.7
func NewStrongBoxUnavailableException(vm *jni.VM) (*StrongBoxUnavailableException, error)
NewStrongBoxUnavailableException creates a new android.security.keystore.StrongBoxUnavailableException instance.
type UserNotAuthenticatedException ¶ added in v0.0.7
UserNotAuthenticatedException wraps android.security.keystore.UserNotAuthenticatedException.
func NewUserNotAuthenticatedException ¶ added in v0.0.7
func NewUserNotAuthenticatedException(vm *jni.VM) (*UserNotAuthenticatedException, error)
NewUserNotAuthenticatedException creates a new android.security.keystore.UserNotAuthenticatedException instance.
type UserPresenceUnavailableException ¶ added in v0.0.7
type UserPresenceUnavailableException struct {
}
UserPresenceUnavailableException wraps android.security.keystore.UserPresenceUnavailableException.
func NewUserPresenceUnavailableException ¶ added in v0.0.7
func NewUserPresenceUnavailableException(vm *jni.VM) (*UserPresenceUnavailableException, error)
NewUserPresenceUnavailableException creates a new android.security.keystore.UserPresenceUnavailableException instance.
type WrappedKeyEntry ¶ added in v0.0.7
WrappedKeyEntry wraps android.security.keystore.WrappedKeyEntry.
func NewWrappedKeyEntry ¶ added in v0.0.7
func NewWrappedKeyEntry(vm *jni.VM, arg0 *jni.Object, arg1 string, arg2 string, arg3 *jni.Object) (*WrappedKeyEntry, error)
NewWrappedKeyEntry creates a new android.security.keystore.WrappedKeyEntry instance.
func (*WrappedKeyEntry) GetAlgorithmParameterSpec ¶ added in v0.0.7
func (m *WrappedKeyEntry) GetAlgorithmParameterSpec() (*jni.Object, error)
GetAlgorithmParameterSpec calls android.security.keystore.WrappedKeyEntry.getAlgorithmParameterSpec.
func (*WrappedKeyEntry) GetTransformation ¶ added in v0.0.7
func (m *WrappedKeyEntry) GetTransformation() (string, error)
GetTransformation calls android.security.keystore.WrappedKeyEntry.getTransformation.
func (*WrappedKeyEntry) GetWrappedKeyBytes ¶ added in v0.0.7
func (m *WrappedKeyEntry) GetWrappedKeyBytes() (*jni.Object, error)
GetWrappedKeyBytes calls android.security.keystore.WrappedKeyEntry.getWrappedKeyBytes.
func (*WrappedKeyEntry) GetWrappingKeyAlias ¶ added in v0.0.7
func (m *WrappedKeyEntry) GetWrappingKeyAlias() (string, error)
GetWrappingKeyAlias calls android.security.keystore.WrappedKeyEntry.getWrappingKeyAlias.
Source Files
¶
- backend_busy_exception.go
- constants.go
- doc.go
- init.go
- key_expired_exception.go
- key_gen_parameter_spec.go
- key_gen_parameter_spec_builder.go
- key_info.go
- key_not_yet_valid_exception.go
- key_permanently_invalidated_exception.go
- key_protection.go
- key_protection_builder.go
- key_store_manager.go
- secure_key_import_unavailable_exception.go
- strong_box_unavailable_exception.go
- user_not_authenticated_exception.go
- user_presence_unavailable_exception.go
- wrapped_key_entry.go