Documentation
¶
Overview ¶
Package biometric provides Go bindings for android.hardware.biometrics.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type Manager
- type ManagerStrings
- type Prompt
- func (m *Prompt) Authenticate3_1(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object) error
- func (m *Prompt) Authenticate4(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 *jni.Object) error
- func (m *Prompt) GetAllowedAuthenticators() (int32, error)
- func (m *Prompt) GetContentView() (*jni.Object, error)
- func (m *Prompt) GetDescription() (*jni.Object, error)
- func (m *Prompt) GetLogoBitmap() (*jni.Object, error)
- func (m *Prompt) GetLogoDescription() (string, error)
- func (m *Prompt) GetLogoRes() (int32, error)
- func (m *Prompt) GetNegativeButtonText() (*jni.Object, error)
- func (m *Prompt) GetSubtitle() (*jni.Object, error)
- func (m *Prompt) GetTitle() (*jni.Object, error)
- func (m *Prompt) IsConfirmationRequired() (bool, error)
- type PromptAuthenticationCallback
- func (m *PromptAuthenticationCallback) OnAuthenticationError(arg0 int32, arg1 string) error
- func (m *PromptAuthenticationCallback) OnAuthenticationFailed() error
- func (m *PromptAuthenticationCallback) OnAuthenticationHelp(arg0 int32, arg1 string) error
- func (m *PromptAuthenticationCallback) OnAuthenticationSucceeded(arg0 *jni.Object) error
- type PromptAuthenticationResult
- type PromptBuilder
- func (m *PromptBuilder) Build() (*jni.Object, error)
- func (m *PromptBuilder) SetAllowedAuthenticators(arg0 int32) (*jni.Object, error)
- func (m *PromptBuilder) SetConfirmationRequired(arg0 bool) (*jni.Object, error)
- func (m *PromptBuilder) SetContentView(arg0 *jni.Object) (*jni.Object, error)
- func (m *PromptBuilder) SetDescription(arg0 string) (*jni.Object, error)
- func (m *PromptBuilder) SetDeviceCredentialAllowed(arg0 bool) (*jni.Object, error)
- func (m *PromptBuilder) SetLogoBitmap(arg0 *jni.Object) (*jni.Object, error)
- func (m *PromptBuilder) SetLogoDescription(arg0 string) (*jni.Object, error)
- func (m *PromptBuilder) SetLogoRes(arg0 int32) (*jni.Object, error)
- func (m *PromptBuilder) SetNegativeButton(arg0 string, arg1 *jni.Object, arg2 *jni.Object) (*jni.Object, error)
- func (m *PromptBuilder) SetSubtitle(arg0 string) (*jni.Object, error)
- func (m *PromptBuilder) SetTitle(arg0 string) (*jni.Object, error)
- type PromptCryptoObject
- func (m *PromptCryptoObject) GetCipher() (*jni.Object, error)
- func (m *PromptCryptoObject) GetIdentityCredential() (*jni.Object, error)
- func (m *PromptCryptoObject) GetMac() (*jni.Object, error)
- func (m *PromptCryptoObject) GetOperationHandle() (int64, error)
- func (m *PromptCryptoObject) GetPresentationSession() (*jni.Object, error)
- func (m *PromptCryptoObject) GetSignature() (*jni.Object, error)
Constants ¶
const ( BiometricErrorIdentityCheckNotActive = consts.BiometricErrorIdentityCheckNotActive BiometricErrorNoneEnrolled = consts.BiometricErrorNoneEnrolled BiometricErrorNotEnabledForApps = consts.BiometricErrorNotEnabledForApps BiometricErrorNoHardware = consts.BiometricErrorNoHardware BiometricErrorSecurityUpdateRequired = consts.BiometricErrorSecurityUpdateRequired BiometricSuccess = consts.BiometricSuccess BiometricStrong = consts.BiometricStrong BiometricWeak = consts.BiometricWeak DeviceCredential = consts.DeviceCredential IdentityCheck = consts.IdentityCheck AuthenticationResultTypeBiometric = consts.AuthenticationResultTypeBiometric AuthenticationResultTypeDeviceCredential = consts.AuthenticationResultTypeDeviceCredential BiometricAcquiredGood = consts.BiometricAcquiredGood BiometricAcquiredImagerDirty = consts.BiometricAcquiredImagerDirty BiometricAcquiredInsufficient = consts.BiometricAcquiredInsufficient BiometricAcquiredPartial = consts.BiometricAcquiredPartial BiometricAcquiredTooFast = consts.BiometricAcquiredTooFast BiometricAcquiredTooSlow = consts.BiometricAcquiredTooSlow BiometricErrorCanceled = consts.BiometricErrorCanceled BiometricErrorHwNotPresent = consts.BiometricErrorHwNotPresent BiometricErrorLockout = consts.BiometricErrorLockout BiometricErrorLockoutPermanent = consts.BiometricErrorLockoutPermanent BiometricErrorNoBiometrics = consts.BiometricErrorNoBiometrics BiometricErrorNoDeviceCredential = consts.BiometricErrorNoDeviceCredential BiometricErrorNoSpace = consts.BiometricErrorNoSpace BiometricErrorTimeout = consts.BiometricErrorTimeout BiometricErrorUnableToProcess = consts.BiometricErrorUnableToProcess BiometricErrorUserCanceled = consts.BiometricErrorUserCanceled BiometricErrorVendor = consts.BiometricErrorVendor )
const (
BiometricNoAuthentication = consts.BiometricNoAuthentication
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶ added in v0.0.4
Manager wraps android.hardware.biometrics.BiometricManager.
func NewManager ¶ added in v0.0.4
NewManager obtains android.hardware.biometrics.BiometricManager from the Android system service manager.
func (*Manager) CanAuthenticate0 ¶ added in v0.0.4
CanAuthenticate0 calls android.hardware.biometrics.BiometricManager.canAuthenticate.
func (*Manager) CanAuthenticate1_1 ¶ added in v0.0.4
CanAuthenticate1_1 calls android.hardware.biometrics.BiometricManager.canAuthenticate.
func (*Manager) Close ¶ added in v0.0.4
func (m *Manager) Close()
Close releases the global reference to the underlying Java object. After Close, the Manager must not be used.
func (*Manager) GetLastAuthenticationTime ¶ added in v0.0.4
GetLastAuthenticationTime calls android.hardware.biometrics.BiometricManager.getLastAuthenticationTime.
type ManagerStrings ¶ added in v0.0.7
ManagerStrings wraps android.hardware.biometrics.BiometricManager$Strings.
func (*ManagerStrings) GetButtonLabel ¶ added in v0.0.7
func (m *ManagerStrings) GetButtonLabel() (*jni.Object, error)
GetButtonLabel calls android.hardware.biometrics.BiometricManager$Strings.getButtonLabel.
func (*ManagerStrings) GetPromptMessage ¶ added in v0.0.7
func (m *ManagerStrings) GetPromptMessage() (*jni.Object, error)
GetPromptMessage calls android.hardware.biometrics.BiometricManager$Strings.getPromptMessage.
func (*ManagerStrings) GetSettingName ¶ added in v0.0.7
func (m *ManagerStrings) GetSettingName() (*jni.Object, error)
GetSettingName calls android.hardware.biometrics.BiometricManager$Strings.getSettingName.
type Prompt ¶ added in v0.0.4
Prompt wraps android.hardware.biometrics.BiometricPrompt.
func (*Prompt) Authenticate3_1 ¶ added in v0.0.4
Authenticate3_1 calls android.hardware.biometrics.BiometricPrompt.authenticate.
func (*Prompt) Authenticate4 ¶ added in v0.0.4
func (m *Prompt) Authenticate4( arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 *jni.Object, ) error
Authenticate4 calls android.hardware.biometrics.BiometricPrompt.authenticate.
func (*Prompt) GetAllowedAuthenticators ¶ added in v0.0.4
GetAllowedAuthenticators calls android.hardware.biometrics.BiometricPrompt.getAllowedAuthenticators.
func (*Prompt) GetContentView ¶ added in v0.0.4
GetContentView calls android.hardware.biometrics.BiometricPrompt.getContentView.
func (*Prompt) GetDescription ¶ added in v0.0.4
GetDescription calls android.hardware.biometrics.BiometricPrompt.getDescription.
func (*Prompt) GetLogoBitmap ¶ added in v0.0.4
GetLogoBitmap calls android.hardware.biometrics.BiometricPrompt.getLogoBitmap.
func (*Prompt) GetLogoDescription ¶ added in v0.0.4
GetLogoDescription calls android.hardware.biometrics.BiometricPrompt.getLogoDescription.
func (*Prompt) GetLogoRes ¶ added in v0.0.4
GetLogoRes calls android.hardware.biometrics.BiometricPrompt.getLogoRes.
func (*Prompt) GetNegativeButtonText ¶ added in v0.0.4
GetNegativeButtonText calls android.hardware.biometrics.BiometricPrompt.getNegativeButtonText.
func (*Prompt) GetSubtitle ¶ added in v0.0.4
GetSubtitle calls android.hardware.biometrics.BiometricPrompt.getSubtitle.
func (*Prompt) GetTitle ¶ added in v0.0.4
GetTitle calls android.hardware.biometrics.BiometricPrompt.getTitle.
func (*Prompt) IsConfirmationRequired ¶ added in v0.0.4
IsConfirmationRequired calls android.hardware.biometrics.BiometricPrompt.isConfirmationRequired.
type PromptAuthenticationCallback ¶ added in v0.0.7
PromptAuthenticationCallback wraps android.hardware.biometrics.BiometricPrompt$AuthenticationCallback.
func (*PromptAuthenticationCallback) OnAuthenticationError ¶ added in v0.0.7
func (m *PromptAuthenticationCallback) OnAuthenticationError(arg0 int32, arg1 string) error
OnAuthenticationError calls android.hardware.biometrics.BiometricPrompt$AuthenticationCallback.onAuthenticationError.
func (*PromptAuthenticationCallback) OnAuthenticationFailed ¶ added in v0.0.7
func (m *PromptAuthenticationCallback) OnAuthenticationFailed() error
OnAuthenticationFailed calls android.hardware.biometrics.BiometricPrompt$AuthenticationCallback.onAuthenticationFailed.
func (*PromptAuthenticationCallback) OnAuthenticationHelp ¶ added in v0.0.7
func (m *PromptAuthenticationCallback) OnAuthenticationHelp(arg0 int32, arg1 string) error
OnAuthenticationHelp calls android.hardware.biometrics.BiometricPrompt$AuthenticationCallback.onAuthenticationHelp.
func (*PromptAuthenticationCallback) OnAuthenticationSucceeded ¶ added in v0.0.7
func (m *PromptAuthenticationCallback) OnAuthenticationSucceeded(arg0 *jni.Object) error
OnAuthenticationSucceeded calls android.hardware.biometrics.BiometricPrompt$AuthenticationCallback.onAuthenticationSucceeded.
type PromptAuthenticationResult ¶ added in v0.0.7
PromptAuthenticationResult wraps android.hardware.biometrics.BiometricPrompt$AuthenticationResult.
func (*PromptAuthenticationResult) GetAuthenticationType ¶ added in v0.0.7
func (m *PromptAuthenticationResult) GetAuthenticationType() (int32, error)
GetAuthenticationType calls android.hardware.biometrics.BiometricPrompt$AuthenticationResult.getAuthenticationType.
func (*PromptAuthenticationResult) GetCryptoObject ¶ added in v0.0.7
func (m *PromptAuthenticationResult) GetCryptoObject() (*jni.Object, error)
GetCryptoObject calls android.hardware.biometrics.BiometricPrompt$AuthenticationResult.getCryptoObject.
type PromptBuilder ¶ added in v0.0.4
PromptBuilder wraps android.hardware.biometrics.BiometricPrompt$Builder.
func (*PromptBuilder) Build ¶ added in v0.0.4
func (m *PromptBuilder) Build() (*jni.Object, error)
Build calls android.hardware.biometrics.BiometricPrompt$Builder.build.
func (*PromptBuilder) SetAllowedAuthenticators ¶ added in v0.0.4
func (m *PromptBuilder) SetAllowedAuthenticators(arg0 int32) (*jni.Object, error)
SetAllowedAuthenticators calls android.hardware.biometrics.BiometricPrompt$Builder.setAllowedAuthenticators.
func (*PromptBuilder) SetConfirmationRequired ¶ added in v0.0.4
func (m *PromptBuilder) SetConfirmationRequired(arg0 bool) (*jni.Object, error)
SetConfirmationRequired calls android.hardware.biometrics.BiometricPrompt$Builder.setConfirmationRequired.
func (*PromptBuilder) SetContentView ¶ added in v0.0.4
SetContentView calls android.hardware.biometrics.BiometricPrompt$Builder.setContentView.
func (*PromptBuilder) SetDescription ¶ added in v0.0.4
func (m *PromptBuilder) SetDescription(arg0 string) (*jni.Object, error)
SetDescription calls android.hardware.biometrics.BiometricPrompt$Builder.setDescription.
func (*PromptBuilder) SetDeviceCredentialAllowed ¶ added in v0.0.4
func (m *PromptBuilder) SetDeviceCredentialAllowed(arg0 bool) (*jni.Object, error)
SetDeviceCredentialAllowed calls android.hardware.biometrics.BiometricPrompt$Builder.setDeviceCredentialAllowed.
func (*PromptBuilder) SetLogoBitmap ¶ added in v0.0.4
SetLogoBitmap calls android.hardware.biometrics.BiometricPrompt$Builder.setLogoBitmap.
func (*PromptBuilder) SetLogoDescription ¶ added in v0.0.4
func (m *PromptBuilder) SetLogoDescription(arg0 string) (*jni.Object, error)
SetLogoDescription calls android.hardware.biometrics.BiometricPrompt$Builder.setLogoDescription.
func (*PromptBuilder) SetLogoRes ¶ added in v0.0.4
func (m *PromptBuilder) SetLogoRes(arg0 int32) (*jni.Object, error)
SetLogoRes calls android.hardware.biometrics.BiometricPrompt$Builder.setLogoRes.
func (*PromptBuilder) SetNegativeButton ¶ added in v0.0.4
func (m *PromptBuilder) SetNegativeButton( arg0 string, arg1 *jni.Object, arg2 *jni.Object, ) (*jni.Object, error)
SetNegativeButton calls android.hardware.biometrics.BiometricPrompt$Builder.setNegativeButton.
func (*PromptBuilder) SetSubtitle ¶ added in v0.0.4
func (m *PromptBuilder) SetSubtitle(arg0 string) (*jni.Object, error)
SetSubtitle calls android.hardware.biometrics.BiometricPrompt$Builder.setSubtitle.
type PromptCryptoObject ¶ added in v0.0.7
PromptCryptoObject wraps android.hardware.biometrics.BiometricPrompt$CryptoObject.
func (*PromptCryptoObject) GetCipher ¶ added in v0.0.7
func (m *PromptCryptoObject) GetCipher() (*jni.Object, error)
GetCipher calls android.hardware.biometrics.BiometricPrompt$CryptoObject.getCipher.
func (*PromptCryptoObject) GetIdentityCredential ¶ added in v0.0.7
func (m *PromptCryptoObject) GetIdentityCredential() (*jni.Object, error)
GetIdentityCredential calls android.hardware.biometrics.BiometricPrompt$CryptoObject.getIdentityCredential.
func (*PromptCryptoObject) GetMac ¶ added in v0.0.7
func (m *PromptCryptoObject) GetMac() (*jni.Object, error)
GetMac calls android.hardware.biometrics.BiometricPrompt$CryptoObject.getMac.
func (*PromptCryptoObject) GetOperationHandle ¶ added in v0.0.7
func (m *PromptCryptoObject) GetOperationHandle() (int64, error)
GetOperationHandle calls android.hardware.biometrics.BiometricPrompt$CryptoObject.getOperationHandle.
func (*PromptCryptoObject) GetPresentationSession ¶ added in v0.0.7
func (m *PromptCryptoObject) GetPresentationSession() (*jni.Object, error)
GetPresentationSession calls android.hardware.biometrics.BiometricPrompt$CryptoObject.getPresentationSession.
func (*PromptCryptoObject) GetSignature ¶ added in v0.0.7
func (m *PromptCryptoObject) GetSignature() (*jni.Object, error)
GetSignature calls android.hardware.biometrics.BiometricPrompt$CryptoObject.getSignature.