authenticationservices

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package authenticationservices provides purego-based Go bindings for the macOS AuthenticationServices framework.

Apple documentation: https://developer.apple.com/documentation/authenticationservices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASAuthorizationAllSupportedPublicKeyCredentialDescriptorTransports

func ASAuthorizationAllSupportedPublicKeyCredentialDescriptorTransports() *foundation.NSArray[*foundation.NSString]

func ASAuthorizationAppleIDProviderCredentialRevokedNotification

func ASAuthorizationAppleIDProviderCredentialRevokedNotification() *foundation.NSString

func ASAuthorizationErrorDomain

func ASAuthorizationErrorDomain() *foundation.NSString

func ASAuthorizationOperationImplicit

func ASAuthorizationOperationImplicit() *foundation.NSString

func ASAuthorizationOperationLogin

func ASAuthorizationOperationLogin() *foundation.NSString

func ASAuthorizationOperationLogout

func ASAuthorizationOperationLogout() *foundation.NSString

func ASAuthorizationOperationRefresh

func ASAuthorizationOperationRefresh() *foundation.NSString

func ASAuthorizationProviderAuthorizationOperationConfigurationRemoved

func ASAuthorizationProviderAuthorizationOperationConfigurationRemoved() *foundation.NSString

@abstract Operation which is invoked when the extension configuration is removed from the system.

func ASAuthorizationProviderAuthorizationOperationDirectRequest

func ASAuthorizationProviderAuthorizationOperationDirectRequest() *foundation.NSString

@abstract Operation which is invoked when a request is sent direct to the extension instead of loaded in an ASWebAuthenticationSession.

func ASAuthorizationProviderExtensionEncryptionAlgorithmECDHE_A256GCM

func ASAuthorizationProviderExtensionEncryptionAlgorithmECDHE_A256GCM() uintptr

A encryption algorithm that uses NIST P-256 elliptic curve key agreement, ConcatKDF key derivation with a 256-bit digest, and the Advanced Encryption Standard cipher in Galois/Counter Mode with a key length of 256 bits.

func ASAuthorizationProviderExtensionEncryptionAlgorithmHPKE_Curve25519_SHA256_ChachaPoly

func ASAuthorizationProviderExtensionEncryptionAlgorithmHPKE_Curve25519_SHA256_ChachaPoly() uintptr

A cipher suite for HPKE that uses X25519 elliptic curve key agreement, SHA-2 key derivation with a 256-bit digest, and the ChaCha20 stream cipher with the Poly1305 message authentication code.

func ASAuthorizationProviderExtensionEncryptionAlgorithmHPKE_P256_SHA256_AES_GCM_256

func ASAuthorizationProviderExtensionEncryptionAlgorithmHPKE_P256_SHA256_AES_GCM_256() uintptr

A cipher suite for HPKE that uses NIST P-256 elliptic curve key agreement, SHA-2 key derivation with a 256-bit digest, and the Advanced Encryption Standard cipher in Galois/Counter Mode with a key length of 256 bits.

func ASAuthorizationProviderExtensionEncryptionAlgorithmHPKE_P384_SHA384_AES_GCM_256

func ASAuthorizationProviderExtensionEncryptionAlgorithmHPKE_P384_SHA384_AES_GCM_256() uintptr

A cipher suite that you use for HPKE using NIST P-384 elliptic curve key agreement, SHA-2 key derivation with a 384-bit digest, and the Advanced Encryption Standard cipher in Galois/Counter Mode with a key length of 256 bits.

func ASAuthorizationProviderExtensionLoginConfigurationConfigurationWithOpenIDConfigurationURLClientIDIssuerCompletion

func ASAuthorizationProviderExtensionLoginConfigurationConfigurationWithOpenIDConfigurationURLClientIDIssuerCompletion(openIDConfigurationURL *foundation.NSURL, clientID *foundation.NSString, issuer *foundation.NSString, completion func(*ASAuthorizationProviderExtensionLoginConfiguration, unsafe.Pointer))

@abstract Creates a login configuration using the OpenID configuration. @param openIDConfigurationURL The base URL to load the .well-known/openid-configuration. @param clientID The client_id for the Apple platform SSO login at the identity provider. @param issuer The issuer for the requests, used to validate responses. @param completion The completion called when it is complete or the error.

func ASAuthorizationProviderExtensionSigningAlgorithmES256

func ASAuthorizationProviderExtensionSigningAlgorithmES256() uintptr

func ASAuthorizationProviderExtensionSigningAlgorithmES384

func ASAuthorizationProviderExtensionSigningAlgorithmES384() uintptr

func ASAuthorizationProviderExtensionSigningAlgorithmEd25519

func ASAuthorizationProviderExtensionSigningAlgorithmEd25519() uintptr

func ASAuthorizationPublicKeyCredentialAttestationKindDirect

func ASAuthorizationPublicKeyCredentialAttestationKindDirect() *foundation.NSString

func ASAuthorizationPublicKeyCredentialAttestationKindEnterprise

func ASAuthorizationPublicKeyCredentialAttestationKindEnterprise() *foundation.NSString

func ASAuthorizationPublicKeyCredentialAttestationKindIndirect

func ASAuthorizationPublicKeyCredentialAttestationKindIndirect() *foundation.NSString

func ASAuthorizationPublicKeyCredentialAttestationKindNone

func ASAuthorizationPublicKeyCredentialAttestationKindNone() *foundation.NSString

func ASAuthorizationPublicKeyCredentialResidentKeyPreferenceDiscouraged

func ASAuthorizationPublicKeyCredentialResidentKeyPreferenceDiscouraged() *foundation.NSString

func ASAuthorizationPublicKeyCredentialResidentKeyPreferencePreferred

func ASAuthorizationPublicKeyCredentialResidentKeyPreferencePreferred() *foundation.NSString

func ASAuthorizationPublicKeyCredentialResidentKeyPreferenceRequired

func ASAuthorizationPublicKeyCredentialResidentKeyPreferenceRequired() *foundation.NSString

func ASAuthorizationPublicKeyCredentialUserVerificationPreferenceDiscouraged

func ASAuthorizationPublicKeyCredentialUserVerificationPreferenceDiscouraged() *foundation.NSString

func ASAuthorizationPublicKeyCredentialUserVerificationPreferencePreferred

func ASAuthorizationPublicKeyCredentialUserVerificationPreferencePreferred() *foundation.NSString

func ASAuthorizationPublicKeyCredentialUserVerificationPreferenceRequired

func ASAuthorizationPublicKeyCredentialUserVerificationPreferenceRequired() *foundation.NSString

func ASAuthorizationScopeEmail

func ASAuthorizationScopeEmail() *foundation.NSString

func ASAuthorizationScopeFullName

func ASAuthorizationScopeFullName() *foundation.NSString

func ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransportBluetooth

func ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransportBluetooth() uintptr

func ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransportNFC

func ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransportNFC() uintptr

func ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransportUSB

func ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransportUSB() uintptr

func ASAuthorizationWebBrowserPublicKeyCredentialManagerIsDeviceConfiguredForPasskeys

func ASAuthorizationWebBrowserPublicKeyCredentialManagerIsDeviceConfiguredForPasskeys() bool

func ASCredentialIdentityStoreErrorDomain

func ASCredentialIdentityStoreErrorDomain() *foundation.NSString

func ASExtensionErrorDomain

func ASExtensionErrorDomain() *foundation.NSString

func ASSettingsHelperOpenCredentialProviderAppSettingsWithCompletionHandler

func ASSettingsHelperOpenCredentialProviderAppSettingsWithCompletionHandler(completionHandler func(unsafe.Pointer))

Calling this method will open the Settings app and navigate directly to the AutoFill provider settings.

func ASSettingsHelperOpenVerificationCodeAppSettingsWithCompletionHandler

func ASSettingsHelperOpenVerificationCodeAppSettingsWithCompletionHandler(completionHandler func(unsafe.Pointer))

Calling this method will open the Settings app and navigate directly to the Verification Code provider settings.

func ASSettingsHelperRequestToTurnOnCredentialProviderExtensionWithCompletionHandler

func ASSettingsHelperRequestToTurnOnCredentialProviderExtensionWithCompletionHandler(completionHandler func(bool))

Call this method from your containing app to request to turn on a contained Credential Provider Extension. If the extension is not currently enabled, a prompt will be shown to allow it to be turned on. The completion handler is called with YES or NO depending on whether the credential provider is enabled. You need to wait 10 seconds in order to make additional request to this API.

func ASWebAuthenticationSessionErrorDomain

func ASWebAuthenticationSessionErrorDomain() *foundation.NSString

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

Types

type ASAuthorization

type ASAuthorization struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorization

func ASAuthorizationFromID

func ASAuthorizationFromID(id objc.ID) *ASAuthorization

func (*ASAuthorization) Credential

@abstract The credential that was returned by the authorization provider. Authorization provider type should be used to determine how to introspect the credential.

func (*ASAuthorization) Provider

@abstract Provider which was used to generate this authorization response.

type ASAuthorizationAppleIDButton

type ASAuthorizationAppleIDButton struct {
	appkit.NSControl
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationappleidbutton

func ASAuthorizationAppleIDButtonFromID

func ASAuthorizationAppleIDButtonFromID(id objc.ID) *ASAuthorizationAppleIDButton

func (*ASAuthorizationAppleIDButton) CornerRadius

func (o *ASAuthorizationAppleIDButton) CornerRadius() float64

func (*ASAuthorizationAppleIDButton) InitWithAuthorizationButtonTypeAuthorizationButtonStyle

func (o *ASAuthorizationAppleIDButton) InitWithAuthorizationButtonTypeAuthorizationButtonStyle(type_ ASAuthorizationAppleIDButtonType, style ASAuthorizationAppleIDButtonStyle) *ASAuthorizationAppleIDButton

func (*ASAuthorizationAppleIDButton) SetCornerRadius

func (o *ASAuthorizationAppleIDButton) SetCornerRadius(cornerRadius float64)

type ASAuthorizationAppleIDButtonStyle

type ASAuthorizationAppleIDButtonStyle int64
const (
	ASAuthorizationAppleIDButtonStyleWhite        ASAuthorizationAppleIDButtonStyle = 0
	ASAuthorizationAppleIDButtonStyleWhiteOutline ASAuthorizationAppleIDButtonStyle = 1
	ASAuthorizationAppleIDButtonStyleBlack        ASAuthorizationAppleIDButtonStyle = 2
)

func (ASAuthorizationAppleIDButtonStyle) String

type ASAuthorizationAppleIDButtonType

type ASAuthorizationAppleIDButtonType int64
const (
	ASAuthorizationAppleIDButtonTypeSignIn   ASAuthorizationAppleIDButtonType = 0
	ASAuthorizationAppleIDButtonTypeContinue ASAuthorizationAppleIDButtonType = 1
	ASAuthorizationAppleIDButtonTypeSignUp   ASAuthorizationAppleIDButtonType = 2
	ASAuthorizationAppleIDButtonTypeDefault  ASAuthorizationAppleIDButtonType = 0
)

func (ASAuthorizationAppleIDButtonType) String

type ASAuthorizationAppleIDCredential

type ASAuthorizationAppleIDCredential struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationappleidcredential

func ASAuthorizationAppleIDCredentialFromID

func ASAuthorizationAppleIDCredentialFromID(id objc.ID) *ASAuthorizationAppleIDCredential

func (*ASAuthorizationAppleIDCredential) AuthorizationCode

func (o *ASAuthorizationAppleIDCredential) AuthorizationCode() *foundation.NSData

@abstract A short-lived, one-time valid token that provides proof of authorization to the server component of the app. The authorization code is bound to the specific transaction using the state attribute passed in the authorization request. The server component of the app can validate the code using Apple’s identity service endpoint provided for this purpose.

func (*ASAuthorizationAppleIDCredential) AuthorizedScopes

@abstract This value will contain a list of scopes for which the user provided authorization. These may contain a subset of the requested scopes on @see ASAuthorizationAppleIDRequest. The application should query this value to identify which scopes were returned as it maybe different from ones requested.

func (*ASAuthorizationAppleIDCredential) Email

@abstract An optional email shared by the user. This field is populated with a value that the user authorized.

func (*ASAuthorizationAppleIDCredential) FullName

@abstract An optional full name shared by the user. This field is populated with a value that the user authorized.

func (*ASAuthorizationAppleIDCredential) IdentityToken

@abstract A JSON Web Token (JWT) used to communicate information about the identity of the user in a secure way to the app. The ID token will contain the following information: Issuer Identifier, Subject Identifier, Audience, Expiry Time and Issuance Time signed by Apple's identity service.

func (*ASAuthorizationAppleIDCredential) RealUserStatus

@abstract Check this property for a hint as to whether the current user is a "real user". @see ASUserDetectionStatus for guidelines on handling each status

func (*ASAuthorizationAppleIDCredential) State

@abstract A copy of the state value that was passed to ASAuthorizationRequest.

func (*ASAuthorizationAppleIDCredential) User

@abstract An opaque user ID associated with the AppleID used for the sign in. This identifier will be stable across the 'developer team', it can later be used as an input to @see ASAuthorizationRequest to request user contact information. The identifier will remain stable as long as the user is connected with the requesting client. The value may change upon user disconnecting from the identity provider.

func (*ASAuthorizationAppleIDCredential) UserAgeRange

@abstract Check this property to determine whether the current user is a child. @see ASUserAgeRange for guidelines on handling each status.

type ASAuthorizationAppleIDProvider

type ASAuthorizationAppleIDProvider struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationappleidprovider

func ASAuthorizationAppleIDProviderFromID

func ASAuthorizationAppleIDProviderFromID(id objc.ID) *ASAuthorizationAppleIDProvider

func (*ASAuthorizationAppleIDProvider) CreateRequest

@abstract This method initializes and returns an instance of @see ASAuthorizationAppleIDRequest to be serviced by @see ASAuthorizationController.

func (*ASAuthorizationAppleIDProvider) GetCredentialStateForUserIDCompletion

func (o *ASAuthorizationAppleIDProvider) GetCredentialStateForUserIDCompletion(userID *foundation.NSString, completion func(ASAuthorizationAppleIDProviderCredentialState, unsafe.Pointer))

@abstract This method can be used to get the current state of an opaque user ID previously given. @param userID Opaque user identifier that will be checked for state. @param completion A completion block that will return one of 3 possible states @see ASAuthorizationAppleIDProviderCredentialState. @note If credentialState is @see ASAuthorizationAppleIDProviderCredentialNotFound, an error will also be passed in the completion block.

type ASAuthorizationAppleIDProviderCredentialState

type ASAuthorizationAppleIDProviderCredentialState int64
const (
	ASAuthorizationAppleIDProviderCredentialRevoked     ASAuthorizationAppleIDProviderCredentialState = 0
	ASAuthorizationAppleIDProviderCredentialAuthorized  ASAuthorizationAppleIDProviderCredentialState = 1
	ASAuthorizationAppleIDProviderCredentialNotFound    ASAuthorizationAppleIDProviderCredentialState = 2
	ASAuthorizationAppleIDProviderCredentialTransferred ASAuthorizationAppleIDProviderCredentialState = 3
)

func (ASAuthorizationAppleIDProviderCredentialState) String

type ASAuthorizationAppleIDRequest

type ASAuthorizationAppleIDRequest struct {
	ASAuthorizationOpenIDRequest
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationappleidrequest

func ASAuthorizationAppleIDRequestFromID

func ASAuthorizationAppleIDRequestFromID(id objc.ID) *ASAuthorizationAppleIDRequest

func (*ASAuthorizationAppleIDRequest) SetUser

func (*ASAuthorizationAppleIDRequest) User

type ASAuthorizationController

type ASAuthorizationController struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationcontroller

func ASAuthorizationControllerFromID

func ASAuthorizationControllerFromID(id objc.ID) *ASAuthorizationController

func (*ASAuthorizationController) AuthorizationRequests

@abstract Authorization requests that are being serviced by this controller

func (*ASAuthorizationController) Cancel

func (o *ASAuthorizationController) Cancel()

@abstract Cancel the running authorization flows, if there are any. If a flow is canceled, the delegate callback will be made indicating the cancel.

func (*ASAuthorizationController) Delegate

@abstract This delegate will be invoked upon completion of the authorization indicating success or failure. Delegate is required to receive the results of authorization.

func (*ASAuthorizationController) InitWithAuthorizationRequests

func (o *ASAuthorizationController) InitWithAuthorizationRequests(authorizationRequests *foundation.NSArray[*ASAuthorizationRequest]) *ASAuthorizationController

@abstract Initialize the controller with authorization requests. @param authorizationRequests At least one request should be provided. Requests of same type maybe honored in first in first out order

func (*ASAuthorizationController) PerformRequests

func (o *ASAuthorizationController) PerformRequests()

@abstract Initiate the authorization flows. Upon completion, the delegate will be called with either success or failure. Certain authorization flows may require a presentation context. The @c presentationContextProvider will be called to provide it. The instance will remain retained until the flow is either completed or canceled, and the delegate callback is made.

func (*ASAuthorizationController) PerformRequestsWithOptions

func (o *ASAuthorizationController) PerformRequestsWithOptions(options ASAuthorizationControllerRequestOptions)

@abstract Initiate the authorization flows. Upon completion, the delegate will be called with either success or failure. Certain authorization flows may require a presentation context. The @c presentationContextProvider will be called to provide it. Calling this method with no options is the same as calling @c performRequests. The instance will remain retained until the flow is either completed or canceled, and the delegate callback is made.

func (*ASAuthorizationController) PresentationContextProvider

@abstract This delegate will be invoked upon needing a presentation context to display authorization UI.

func (*ASAuthorizationController) SetDelegate

func (*ASAuthorizationController) SetPresentationContextProvider

func (o *ASAuthorizationController) SetPresentationContextProvider(presentationContextProvider ASAuthorizationControllerPresentationContextProviding)

type ASAuthorizationControllerDelegate

type ASAuthorizationControllerDelegate interface {
}

ASAuthorizationControllerDelegate wraps the ObjC protocol ASAuthorizationControllerDelegate.

type ASAuthorizationControllerPresentationContextProviding

type ASAuthorizationControllerPresentationContextProviding interface {
	PresentationAnchorForAuthorizationController(controller *ASAuthorizationController) *appkit.NSWindow
}

ASAuthorizationControllerPresentationContextProviding wraps the ObjC protocol ASAuthorizationControllerPresentationContextProviding.

type ASAuthorizationControllerRequestOptions

type ASAuthorizationControllerRequestOptions uint64
const (
	// When used for sign-in requests, tell the authorization controller that it should only be presented if there are credentials immediately available on the local device. When used for registration requests, tell the authorization controller that it should only be presented if the local device is currently set up to fulfill at least one of the request types.
	ASAuthorizationControllerRequestOptionPreferImmediatelyAvailableCredentials ASAuthorizationControllerRequestOptions = 1
)

func (ASAuthorizationControllerRequestOptions) String

type ASAuthorizationCredential

type ASAuthorizationCredential interface {
	foundation.NSCopying
	foundation.NSSecureCoding
}

ASAuthorizationCredential wraps the ObjC protocol ASAuthorizationCredential.

type ASAuthorizationError

type ASAuthorizationError int64
const (
	ASAuthorizationErrorUnknown         ASAuthorizationError = 1000
	ASAuthorizationErrorCanceled        ASAuthorizationError = 1001
	ASAuthorizationErrorInvalidResponse ASAuthorizationError = 1002
	ASAuthorizationErrorNotHandled      ASAuthorizationError = 1003
	ASAuthorizationErrorFailed          ASAuthorizationError = 1004
	ASAuthorizationErrorNotInteractive  ASAuthorizationError = 1005
	// This error should only be returned when specifying @c excludedCredentials on a public key credential registration request.
	ASAuthorizationErrorMatchedExcludedCredential ASAuthorizationError = 1006
	// This error signals that the import request failed. Details will be available in the `userInfo` of the NSError.
	ASAuthorizationErrorCredentialImport ASAuthorizationError = 1007
	// This error signals that the export request failed. Details will be available in the `userInfo` of the NSError.
	ASAuthorizationErrorCredentialExport ASAuthorizationError = 1008
	// This error signals the user has an existing Sign in with Apple account that they would prefer to use instead of continuing the current request.
	ASAuthorizationErrorPreferSignInWithApple ASAuthorizationError = 1009
	// This error signals that the device is not currently set up to create passkeys.
	ASAuthorizationErrorDeviceNotConfiguredForPasskeyCreation ASAuthorizationError = 1010
)

func (ASAuthorizationError) String

func (e ASAuthorizationError) String() string

type ASAuthorizationOpenIDRequest

type ASAuthorizationOpenIDRequest struct {
	ASAuthorizationRequest
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationopenidrequest

func ASAuthorizationOpenIDRequestFromID

func ASAuthorizationOpenIDRequestFromID(id objc.ID) *ASAuthorizationOpenIDRequest

func (*ASAuthorizationOpenIDRequest) Nonce

@abstract Nonce to be passed to the identity provider. This value can be verified with the identity token provided as a part of successful ASAuthorization response. @note The nonce size may depend on the actual technology used and an error might be returned by the request execution.

func (*ASAuthorizationOpenIDRequest) RequestedOperation

func (o *ASAuthorizationOpenIDRequest) RequestedOperation() *foundation.NSString

@abstract Operation to be executed by the request. The ASAuthorizationOperationImplicit operation interpretation depends on the credential provider implementation.

func (*ASAuthorizationOpenIDRequest) RequestedScopes

@abstract The contact information to be requested from the user. Only scopes for which this app was authorized for will be returned.

func (*ASAuthorizationOpenIDRequest) SetNonce

func (o *ASAuthorizationOpenIDRequest) SetNonce(nonce *foundation.NSString)

func (*ASAuthorizationOpenIDRequest) SetRequestedOperation

func (o *ASAuthorizationOpenIDRequest) SetRequestedOperation(requestedOperation *foundation.NSString)

func (*ASAuthorizationOpenIDRequest) SetRequestedScopes

func (o *ASAuthorizationOpenIDRequest) SetRequestedScopes(requestedScopes *foundation.NSArray[*foundation.NSString])

func (*ASAuthorizationOpenIDRequest) SetState

func (o *ASAuthorizationOpenIDRequest) SetState(state *foundation.NSString)

func (*ASAuthorizationOpenIDRequest) State

@abstract State to be passed to the identity provider. This value will be returned as a part of successful ASAuthorization response. @note The state size may depend on the actual technology used and an error might be returned by the request execution.

type ASAuthorizationPasswordProvider

type ASAuthorizationPasswordProvider struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationpasswordprovider

func ASAuthorizationPasswordProviderFromID

func ASAuthorizationPasswordProviderFromID(id objc.ID) *ASAuthorizationPasswordProvider

func (*ASAuthorizationPasswordProvider) CreateRequest

type ASAuthorizationPlatformPublicKeyCredentialAssertion

type ASAuthorizationPlatformPublicKeyCredentialAssertion struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationplatformpublickeycredentialassertion

func ASAuthorizationPlatformPublicKeyCredentialAssertionFromID

func ASAuthorizationPlatformPublicKeyCredentialAssertionFromID(id objc.ID) *ASAuthorizationPlatformPublicKeyCredentialAssertion

func (*ASAuthorizationPlatformPublicKeyCredentialAssertion) Attachment

func (*ASAuthorizationPlatformPublicKeyCredentialAssertion) LargeBlob

func (*ASAuthorizationPlatformPublicKeyCredentialAssertion) Prf

type ASAuthorizationPlatformPublicKeyCredentialAssertionRequest

type ASAuthorizationPlatformPublicKeyCredentialAssertionRequest struct {
	ASAuthorizationRequest
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationplatformpublickeycredentialassertionrequest

func (*ASAuthorizationPlatformPublicKeyCredentialAssertionRequest) AllowedCredentials

@abstract A list of credentials to allow for this request. If this ilist is nonempty, only credentials matching the provided descriptors can be used to sign in.

func (*ASAuthorizationPlatformPublicKeyCredentialAssertionRequest) LargeBlob

func (*ASAuthorizationPlatformPublicKeyCredentialAssertionRequest) Prf

func (*ASAuthorizationPlatformPublicKeyCredentialAssertionRequest) SetAllowedCredentials

func (*ASAuthorizationPlatformPublicKeyCredentialAssertionRequest) SetLargeBlob

func (*ASAuthorizationPlatformPublicKeyCredentialAssertionRequest) SetPrf

type ASAuthorizationPlatformPublicKeyCredentialProvider

type ASAuthorizationPlatformPublicKeyCredentialProvider struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationplatformpublickeycredentialprovider

func ASAuthorizationPlatformPublicKeyCredentialProviderFromID

func ASAuthorizationPlatformPublicKeyCredentialProviderFromID(id objc.ID) *ASAuthorizationPlatformPublicKeyCredentialProvider

func (*ASAuthorizationPlatformPublicKeyCredentialProvider) CreateCredentialAssertionRequestWithChallenge

@abstract Create a request to authenticate using an existing credential. @param challenge The challenge to sign.

func (*ASAuthorizationPlatformPublicKeyCredentialProvider) CreateCredentialRegistrationRequestWithChallengeNameUserID

@abstract Create a request to register a new platform credential. @param challenge The challenge to sign. @param name The user name for the new credential. @param userID An identifier to be stored alongside the credential, which will be returned with the credential when it is used to authenticate.

func (*ASAuthorizationPlatformPublicKeyCredentialProvider) CreateCredentialRegistrationRequestWithChallengeNameUserIDRequestStyle

@abstract Create a request to register a new platform credential. @param challenge The challenge to sign. @param name The user name for the new credential. @param userID An identifier to be stored alongside the credential, which will be returned with the credential when it is used to authenticate. @param requestStyle The style for this request.

func (*ASAuthorizationPlatformPublicKeyCredentialProvider) InitWithRelyingPartyIdentifier

func (*ASAuthorizationPlatformPublicKeyCredentialProvider) RelyingPartyIdentifier

@abstract The Relying Party identifier used for all requests created by this object.

type ASAuthorizationPlatformPublicKeyCredentialRegistration

type ASAuthorizationPlatformPublicKeyCredentialRegistration struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationplatformpublickeycredentialregistration

func ASAuthorizationPlatformPublicKeyCredentialRegistrationFromID

func ASAuthorizationPlatformPublicKeyCredentialRegistrationFromID(id objc.ID) *ASAuthorizationPlatformPublicKeyCredentialRegistration

func (*ASAuthorizationPlatformPublicKeyCredentialRegistration) Attachment

func (*ASAuthorizationPlatformPublicKeyCredentialRegistration) LargeBlob

func (*ASAuthorizationPlatformPublicKeyCredentialRegistration) Prf

type ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest

type ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest struct {
	ASAuthorizationRequest
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationplatformpublickeycredentialregistrationrequest

func (*ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest) LargeBlob

func (*ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest) Prf

func (*ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest) RequestStyle

func (*ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest) SetLargeBlob

func (*ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest) SetPrf

func (*ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest) SetRequestStyle

type ASAuthorizationPlatformPublicKeyCredentialRegistrationRequestStyle

type ASAuthorizationPlatformPublicKeyCredentialRegistrationRequestStyle int64
const (
	// Perform a request using the standard presentation style. This is the default style.
	ASAuthorizationPlatformPublicKeyCredentialRegistrationRequestStyleStandard ASAuthorizationPlatformPublicKeyCredentialRegistrationRequestStyle = 0
	// Perform a conditional request. This style of request is meant to opportunistically add passkeys to existing password-based accounts, at the discretion of the user's credential manager. It should be performed shortly after a user has signed in with a password. If the user is using a password and passkey manager, and certain internal conditions of that credential manager are met (e.g. the user signed in recently with a matching password-based account and does not yet have a passkey for this account), then this request may proceed automatically, without further user interaction. If any of the internal conditions are not met, this request will return an error without showing any UI to the user, and may be retried the next time they sign in.
	ASAuthorizationPlatformPublicKeyCredentialRegistrationRequestStyleConditional ASAuthorizationPlatformPublicKeyCredentialRegistrationRequestStyle = 1
)

func (ASAuthorizationPlatformPublicKeyCredentialRegistrationRequestStyle) String

type ASAuthorizationProvider

type ASAuthorizationProvider interface {
}

ASAuthorizationProvider wraps the ObjC protocol ASAuthorizationProvider.

type ASAuthorizationProviderExtensionAuthenticationMethod

type ASAuthorizationProviderExtensionAuthenticationMethod int64
const (
	ASAuthorizationProviderExtensionAuthenticationMethodPassword             ASAuthorizationProviderExtensionAuthenticationMethod = 1
	ASAuthorizationProviderExtensionAuthenticationMethodUserSecureEnclaveKey ASAuthorizationProviderExtensionAuthenticationMethod = 2
	ASAuthorizationProviderExtensionAuthenticationMethodSmartCard            ASAuthorizationProviderExtensionAuthenticationMethod = 3
)

func (ASAuthorizationProviderExtensionAuthenticationMethod) String

type ASAuthorizationProviderExtensionAuthorizationRequest

type ASAuthorizationProviderExtensionAuthorizationRequest struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationproviderextensionauthorizationrequest

func ASAuthorizationProviderExtensionAuthorizationRequestFromID

func ASAuthorizationProviderExtensionAuthorizationRequestFromID(id objc.ID) *ASAuthorizationProviderExtensionAuthorizationRequest

func (*ASAuthorizationProviderExtensionAuthorizationRequest) AuthorizationOptions

@abstract Authorization options.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) CallerAuditToken

@abstract Audit token of the calling application.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) CallerBundleIdentifier

@abstract Identification of the calling application.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) CallerTeamIdentifier

@abstract Team identifier of the calling application.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) Cancel

@abstract Call when authorization needs to be canceled from some reason (for example user pressed Cancel button).

func (*ASAuthorizationProviderExtensionAuthorizationRequest) Complete

@abstract Call when authorization succeeded without any output.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) CompleteWithAuthorizationResult

@abstract Call when authorization succeeded with @see ASAuthorizationProviderExtensionAuthorizationResult.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) CompleteWithError

@abstract Call when authorization failed with an error.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) CompleteWithHTTPAuthorizationHeaders

func (o *ASAuthorizationProviderExtensionAuthorizationRequest) CompleteWithHTTPAuthorizationHeaders(httpAuthorizationHeaders *foundation.NSDictionary[*foundation.NSString, *foundation.NSString])

@abstract Call when authorization succeeded with an authorization tokens stored in HTTP headers.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) CompleteWithHTTPResponseHttpBody

func (o *ASAuthorizationProviderExtensionAuthorizationRequest) CompleteWithHTTPResponseHttpBody(httpResponse *foundation.NSHTTPURLResponse, httpBody *foundation.NSData)

@abstract Call when authorization succeeded with a HTTP response.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) DoNotHandle

@abstract Call when authorization was not handled.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) ExtensionData

@abstract Extension data from extension configuration provided by MDM stored as a property-list.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) HttpBody

@abstract Request body.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) HttpHeaders

@abstract Request HTTP headers.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) IsCallerManaged

@abstract Indicates whether the calling application is managed.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) IsUserInterfaceEnabled

func (o *ASAuthorizationProviderExtensionAuthorizationRequest) IsUserInterfaceEnabled() bool

@abstract Indicates whether the authorization user interface is enabled. @discussion If user interface is not enabled, then the authorization will fail with @see ASAuthorizationErrorNotInteractive if it attempts to display the authorization user interface via @see presentAuthorizationViewControllerWithCompletion.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) LocalizedCallerDisplayName

@abstract Localized display name of the calling application.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) LoginManager

@abstract The login manager to interface with the Platform SSO configuration.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) PresentAuthorizationViewControllerWithCompletion

func (o *ASAuthorizationProviderExtensionAuthorizationRequest) PresentAuthorizationViewControllerWithCompletion(completion func(bool, unsafe.Pointer))

@abstract Asks authorization service to show extension view controller. If the controller cannot be shown an error is returned.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) Realm

@abstract Realm.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) RequestedOperation

@abstract Operation to be executed by the extension.

func (*ASAuthorizationProviderExtensionAuthorizationRequest) Url

@abstract Request URL with all components.

type ASAuthorizationProviderExtensionAuthorizationRequestHandler

type ASAuthorizationProviderExtensionAuthorizationRequestHandler interface {
	BeginAuthorizationWithRequest(request *ASAuthorizationProviderExtensionAuthorizationRequest)
}

ASAuthorizationProviderExtensionAuthorizationRequestHandler wraps the ObjC protocol ASAuthorizationProviderExtensionAuthorizationRequestHandler.

type ASAuthorizationProviderExtensionAuthorizationResult

type ASAuthorizationProviderExtensionAuthorizationResult struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationproviderextensionauthorizationresult

func ASAuthorizationProviderExtensionAuthorizationResultFromID

func ASAuthorizationProviderExtensionAuthorizationResultFromID(id objc.ID) *ASAuthorizationProviderExtensionAuthorizationResult

func (*ASAuthorizationProviderExtensionAuthorizationResult) HttpAuthorizationHeaders

@abstract HTTP extra headers for addition with credentials.

func (*ASAuthorizationProviderExtensionAuthorizationResult) HttpBody

@abstract HTTP response body for OAUth and SAML based authentications.

func (*ASAuthorizationProviderExtensionAuthorizationResult) HttpResponse

@abstract HTTP response for OAUth and SAML based authentications.

func (*ASAuthorizationProviderExtensionAuthorizationResult) InitWithHTTPAuthorizationHeaders

@abstract Authorization succeeded with an authorization tokens stored in HTTP headers.

func (*ASAuthorizationProviderExtensionAuthorizationResult) InitWithHTTPResponseHttpBody

@abstract Authorization succeeded with a HTTP response.

func (*ASAuthorizationProviderExtensionAuthorizationResult) PrivateKeys

@abstract Private SecKeys.

func (*ASAuthorizationProviderExtensionAuthorizationResult) SetHttpAuthorizationHeaders

func (o *ASAuthorizationProviderExtensionAuthorizationResult) SetHttpAuthorizationHeaders(httpAuthorizationHeaders *foundation.NSDictionary[*foundation.NSString, *foundation.NSString])

func (*ASAuthorizationProviderExtensionAuthorizationResult) SetHttpBody

func (*ASAuthorizationProviderExtensionAuthorizationResult) SetHttpResponse

func (*ASAuthorizationProviderExtensionAuthorizationResult) SetPrivateKeys

type ASAuthorizationProviderExtensionFederationType

type ASAuthorizationProviderExtensionFederationType int64
const (
	ASAuthorizationProviderExtensionFederationTypeNone           ASAuthorizationProviderExtensionFederationType = 0
	ASAuthorizationProviderExtensionFederationTypeWSTrust        ASAuthorizationProviderExtensionFederationType = 1
	ASAuthorizationProviderExtensionFederationTypeDynamicWSTrust ASAuthorizationProviderExtensionFederationType = 2
)

func (ASAuthorizationProviderExtensionFederationType) String

type ASAuthorizationProviderExtensionKerberosMapping

type ASAuthorizationProviderExtensionKerberosMapping struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationproviderextensionkerberosmapping

func ASAuthorizationProviderExtensionKerberosMappingFromID

func ASAuthorizationProviderExtensionKerberosMappingFromID(id objc.ID) *ASAuthorizationProviderExtensionKerberosMapping

func (*ASAuthorizationProviderExtensionKerberosMapping) ClientNameKeyName

@abstract The key name that contains the Kerberos client name string.

func (*ASAuthorizationProviderExtensionKerberosMapping) EncryptionKeyTypeKeyName

@abstract The key name that contains the Kerberos session key type number. @discussion The value for this key should be the correct encryption type per RFC3962, section 7 for the session key.

func (*ASAuthorizationProviderExtensionKerberosMapping) MessageBufferKeyName

@abstract The key name that contains the base64 encoded kerberos AS-REP string.

func (*ASAuthorizationProviderExtensionKerberosMapping) RealmKeyName

@abstract The key name that contains the Kerberos Realm string.

func (*ASAuthorizationProviderExtensionKerberosMapping) ServiceNameKeyName

@abstract The key name that contains the Kerberos service name string.

func (*ASAuthorizationProviderExtensionKerberosMapping) SessionKeyKeyName

@abstract The key name that contains the Kerberos session key.

func (*ASAuthorizationProviderExtensionKerberosMapping) SetClientNameKeyName

func (o *ASAuthorizationProviderExtensionKerberosMapping) SetClientNameKeyName(clientNameKeyName *foundation.NSString)

func (*ASAuthorizationProviderExtensionKerberosMapping) SetEncryptionKeyTypeKeyName

func (o *ASAuthorizationProviderExtensionKerberosMapping) SetEncryptionKeyTypeKeyName(encryptionKeyTypeKeyName *foundation.NSString)

func (*ASAuthorizationProviderExtensionKerberosMapping) SetMessageBufferKeyName

func (o *ASAuthorizationProviderExtensionKerberosMapping) SetMessageBufferKeyName(messageBufferKeyName *foundation.NSString)

func (*ASAuthorizationProviderExtensionKerberosMapping) SetRealmKeyName

func (o *ASAuthorizationProviderExtensionKerberosMapping) SetRealmKeyName(realmKeyName *foundation.NSString)

func (*ASAuthorizationProviderExtensionKerberosMapping) SetServiceNameKeyName

func (o *ASAuthorizationProviderExtensionKerberosMapping) SetServiceNameKeyName(serviceNameKeyName *foundation.NSString)

func (*ASAuthorizationProviderExtensionKerberosMapping) SetSessionKeyKeyName

func (o *ASAuthorizationProviderExtensionKerberosMapping) SetSessionKeyKeyName(sessionKeyKeyName *foundation.NSString)

func (*ASAuthorizationProviderExtensionKerberosMapping) SetTicketKeyPath

func (o *ASAuthorizationProviderExtensionKerberosMapping) SetTicketKeyPath(ticketKeyPath *foundation.NSString)

func (*ASAuthorizationProviderExtensionKerberosMapping) TicketKeyPath

@abstract The keypath in the response JSON that uses this set of mappings. @discussion If the response tokens from login contain this keypath, then the mapping in this class will be used to create a Kerberos ticket. The expected response is a JSON dictionary with the supplied key names.

type ASAuthorizationProviderExtensionKeyType

type ASAuthorizationProviderExtensionKeyType int64
const (
	// The user's device signing key.
	ASAuthorizationProviderExtensionKeyTypeUserDeviceSigning ASAuthorizationProviderExtensionKeyType = 1
	// The user's device encryption key.
	ASAuthorizationProviderExtensionKeyTypeUserDeviceEncryption ASAuthorizationProviderExtensionKeyType = 2
	// The user's Secure Enclave backed key.
	ASAuthorizationProviderExtensionKeyTypeUserSecureEnclaveKey ASAuthorizationProviderExtensionKeyType = 3
	// The shared device signing key.
	ASAuthorizationProviderExtensionKeyTypeSharedDeviceSigning ASAuthorizationProviderExtensionKeyType = 4
	// The shared device encryption key.
	ASAuthorizationProviderExtensionKeyTypeSharedDeviceEncryption ASAuthorizationProviderExtensionKeyType = 5
	// The currentdevice signing key.
	ASAuthorizationProviderExtensionKeyTypeCurrentDeviceSigning ASAuthorizationProviderExtensionKeyType = 10
	// The current device encryption key.
	ASAuthorizationProviderExtensionKeyTypeCurrentDeviceEncryption ASAuthorizationProviderExtensionKeyType = 11
	ASAuthorizationProviderExtensionKeyTypeUserSmartCard           ASAuthorizationProviderExtensionKeyType = 20
)

func (ASAuthorizationProviderExtensionKeyType) String

type ASAuthorizationProviderExtensionLoginConfiguration

type ASAuthorizationProviderExtensionLoginConfiguration struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationproviderextensionloginconfiguration

func ASAuthorizationProviderExtensionLoginConfigurationFromID

func ASAuthorizationProviderExtensionLoginConfigurationFromID(id objc.ID) *ASAuthorizationProviderExtensionLoginConfiguration

func (*ASAuthorizationProviderExtensionLoginConfiguration) AccountDisplayName

@abstract The display name for the account. Used for notifications and login prompts.

func (*ASAuthorizationProviderExtensionLoginConfiguration) AdditionalAuthorizationScopes

func (o *ASAuthorizationProviderExtensionLoginConfiguration) AdditionalAuthorizationScopes() *foundation.NSString

@abstract Additional authorization scopes.

func (*ASAuthorizationProviderExtensionLoginConfiguration) AdditionalScopes

@abstract Additional login scopes.

func (*ASAuthorizationProviderExtensionLoginConfiguration) Audience

@abstract The audience for validation and requests.

func (*ASAuthorizationProviderExtensionLoginConfiguration) ClientID

@abstract The login client_id.

func (*ASAuthorizationProviderExtensionLoginConfiguration) CustomFederationUserPreauthenticationRequestValues

func (o *ASAuthorizationProviderExtensionLoginConfiguration) CustomFederationUserPreauthenticationRequestValues() *foundation.NSArray[*foundation.NSURLQueryItem]

@abstract The custom query string values to add when making the preauthenticaion request.

func (*ASAuthorizationProviderExtensionLoginConfiguration) CustomKeyExchangeRequestValues

@abstract Custom values added to the key exchange POST request body.

func (*ASAuthorizationProviderExtensionLoginConfiguration) CustomKeyRequestValues

@abstract Custom values added to the key request POST request body.

func (*ASAuthorizationProviderExtensionLoginConfiguration) CustomLoginRequestValues

@abstract Custom values added to the login POST request body.

func (*ASAuthorizationProviderExtensionLoginConfiguration) CustomNonceRequestValues

@abstract Custom values added to the server nonce POST request body.

func (*ASAuthorizationProviderExtensionLoginConfiguration) CustomRefreshRequestValues

@abstract Custom values added to the refresh POST request body.

func (*ASAuthorizationProviderExtensionLoginConfiguration) CustomRequestJWTParameterName

func (o *ASAuthorizationProviderExtensionLoginConfiguration) CustomRequestJWTParameterName() *foundation.NSString

@abstract The request parameter name for the JWT. The default is "assertion".

func (*ASAuthorizationProviderExtensionLoginConfiguration) DeviceContext

@abstract The device context for storing device meta data.

func (*ASAuthorizationProviderExtensionLoginConfiguration) FederationMEXURL

@abstract The federation MEX URL to use. This can be overwritten when using dynamic federation.

func (*ASAuthorizationProviderExtensionLoginConfiguration) FederationMEXURLKeypath

@abstract The claim in the preauthentication response that contains the MEX URL.

func (*ASAuthorizationProviderExtensionLoginConfiguration) FederationPredicate

@abstract The predicate to apply to the preauthentication response to perform federation or not.

func (*ASAuthorizationProviderExtensionLoginConfiguration) FederationRequestURN

@abstract The URN to request when performing a federated login.

func (*ASAuthorizationProviderExtensionLoginConfiguration) FederationType

@abstract The federation method to use.

func (*ASAuthorizationProviderExtensionLoginConfiguration) FederationUserPreauthenticationURL

func (o *ASAuthorizationProviderExtensionLoginConfiguration) FederationUserPreauthenticationURL() *foundation.NSURL

@abstract The URL to use when performing dynamic federation.

func (*ASAuthorizationProviderExtensionLoginConfiguration) GroupRequestClaimName

@abstract The claim name for group membership request.

func (*ASAuthorizationProviderExtensionLoginConfiguration) GroupResponseClaimName

@abstract The claim name for group responses in the id_token.

func (*ASAuthorizationProviderExtensionLoginConfiguration) HpkeAuthPublicKey

@abstract The Authentication public key to be used for HPKE. Setting this value with changet the mode to Auth or AuthPSK if the hpkePreSharedKey is also set. This public key is used to authenticate HPKE responses.

func (*ASAuthorizationProviderExtensionLoginConfiguration) HpkePreSharedKey

@abstract The PreSharedKey to be used for HKPE. Setting this value will change the mode to PSK or AuthPSK if the hpkeAuthPublicKey is also set. Must be at least 32 bytes.

func (*ASAuthorizationProviderExtensionLoginConfiguration) HpkePreSharedKeyID

@abstract The PreSharedKey Id to be used for HPKE PSK or AuthPSK mode. This is requred if the hpkePreSharedKey is set.

func (*ASAuthorizationProviderExtensionLoginConfiguration) IncludePreviousRefreshTokenInLoginRequest

func (o *ASAuthorizationProviderExtensionLoginConfiguration) IncludePreviousRefreshTokenInLoginRequest() bool

@abstract If true and there is a refresh token for the user in the SSO tokens, it will be included in the login request.

func (*ASAuthorizationProviderExtensionLoginConfiguration) InitWithClientIDIssuerTokenEndpointURLJwksEndpointURLAudience

func (o *ASAuthorizationProviderExtensionLoginConfiguration) InitWithClientIDIssuerTokenEndpointURLJwksEndpointURLAudience(clientID *foundation.NSString, issuer *foundation.NSString, tokenEndpointURL *foundation.NSURL, jwksEndpointURL *foundation.NSURL, audience *foundation.NSString) *ASAuthorizationProviderExtensionLoginConfiguration

@abstract Initializes an ASAuthorizationProviderExtensionLoginConfiguration class with the required values. @param clientID The client_id for the Apple platform SSO login at the identity provider. @param issuer The issuer for the requests, used to validate responses. @param tokenEndpointURL The token endpoint at the idP for login. @param jwksEndpointURL The JWKS URL at the idP for validating tokens. @param audience The audience used for signed assertions. This should be the tenent at the idP. @return An instance of a ASAuthorizationProviderExtensionLoginConfiguration.

func (*ASAuthorizationProviderExtensionLoginConfiguration) InvalidCredentialPredicate

@abstract Predicate string used to identify invalid credential errors. @discussion If there is an HTTP 400 or HTTP 401 error when authenticating, this predicate will be used on the response body JSON to determine if the error is due to an invalid password or something else. If nil, then only an HTTP 401 will be used for an invalid credential.

func (*ASAuthorizationProviderExtensionLoginConfiguration) Issuer

@abstract The issuer for validation.

func (*ASAuthorizationProviderExtensionLoginConfiguration) JwksEndpointURL

@abstract JWKS Endpoint URL for keys.

func (*ASAuthorizationProviderExtensionLoginConfiguration) JwksTrustedRootCertificates

@abstract The root certificates to use for trust evaluation of jwks keys. @discussion if set, certificates will be required in jwks responses and evaluated using the supplied certificates. If the jwks certificates are missing or fail trust evaluation the login will fail.

func (*ASAuthorizationProviderExtensionLoginConfiguration) KerberosTicketMappings

@abstract The Kerberos ticket mappings to use.

func (*ASAuthorizationProviderExtensionLoginConfiguration) KeyEndpointURL

@abstract The url endpoint for key service, defaults to token tokenEndpointURL.

func (*ASAuthorizationProviderExtensionLoginConfiguration) LoginRequestEncryptionAPVPrefix

func (o *ASAuthorizationProviderExtensionLoginConfiguration) LoginRequestEncryptionAPVPrefix() *foundation.NSData

@abstract The APV prefix used for encrypted embedded login assertions.

func (*ASAuthorizationProviderExtensionLoginConfiguration) LoginRequestEncryptionAlgorithm

func (o *ASAuthorizationProviderExtensionLoginConfiguration) LoginRequestEncryptionAlgorithm() *foundation.NSNumber

@abstract The encryption algorithm to use for the embedded login assertion.

func (*ASAuthorizationProviderExtensionLoginConfiguration) LoginRequestEncryptionPublicKey

func (o *ASAuthorizationProviderExtensionLoginConfiguration) LoginRequestEncryptionPublicKey() unsafe.Pointer

@abstract The public key to use for encrypting the embedded login assertion. @discussion Only applies to password authentication. If set, the password will encrypted in an embedded assertion instead of the login request itself.

func (*ASAuthorizationProviderExtensionLoginConfiguration) LoginRequestHPKEPreSharedKey

func (o *ASAuthorizationProviderExtensionLoginConfiguration) LoginRequestHPKEPreSharedKey() *foundation.NSData

@abstract The PreSharedKey to be used for HKPE for embedded login assertions. Setting this value will change the mode to PSK if the loginRequestHPKEPreSharedKeyID is also set. Must be at least 32 bytes.

func (*ASAuthorizationProviderExtensionLoginConfiguration) LoginRequestHPKEPreSharedKeyID

func (o *ASAuthorizationProviderExtensionLoginConfiguration) LoginRequestHPKEPreSharedKeyID() *foundation.NSData

@abstract The PreSharedKey Id to be used for HPKE PSK for embedded login assertions. This is required if the loginRequestHPKEPreSharedKey is set.

func (*ASAuthorizationProviderExtensionLoginConfiguration) NonceEndpointURL

@abstract Nonce Endpoint URL, defaults to token tokenEndpointURL.

func (*ASAuthorizationProviderExtensionLoginConfiguration) NonceResponseKeypath

@abstract The keypath in the nonce response that contains the nonce value.

func (*ASAuthorizationProviderExtensionLoginConfiguration) PreviousRefreshTokenClaimName

func (o *ASAuthorizationProviderExtensionLoginConfiguration) PreviousRefreshTokenClaimName() *foundation.NSString

@abstract The claim name for the previous SSO token value in the login request.

func (*ASAuthorizationProviderExtensionLoginConfiguration) RefreshEndpointURL

@abstract Token Refresh Endpoint URL for login request. Defaults to the tokenEndpointURL.

func (*ASAuthorizationProviderExtensionLoginConfiguration) ServerNonceClaimName

@abstract The name of the server nonce claim when included in authentication requests.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetAccountDisplayName

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetAccountDisplayName(accountDisplayName *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetAdditionalAuthorizationScopes

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetAdditionalAuthorizationScopes(additionalAuthorizationScopes *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetAdditionalScopes

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetAdditionalScopes(additionalScopes *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetAudience

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomAssertionRequestBodyClaimsReturningError

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomAssertionRequestBodyClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the embedded assertion request body. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomAssertionRequestHeaderClaimsReturningError

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomAssertionRequestHeaderClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the embedded assertion request header. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomFederationUserPreauthenticationRequestValues

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomFederationUserPreauthenticationRequestValues(customFederationUserPreauthenticationRequestValues *foundation.NSArray[*foundation.NSURLQueryItem])

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyExchangeRequestBodyClaimsReturningError

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyExchangeRequestBodyClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the key exchange request body. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyExchangeRequestHeaderClaimsReturningError

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyExchangeRequestHeaderClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the key exchange request header. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyExchangeRequestValues

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyExchangeRequestValues(customKeyExchangeRequestValues *foundation.NSArray[*foundation.NSURLQueryItem])

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyRequestBodyClaimsReturningError

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyRequestBodyClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the key request body. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyRequestHeaderClaimsReturningError

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyRequestHeaderClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the key request header. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyRequestValues

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomKeyRequestValues(customKeyRequestValues *foundation.NSArray[*foundation.NSURLQueryItem])

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomLoginRequestBodyClaimsReturningError

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomLoginRequestBodyClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the login request body. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomLoginRequestHeaderClaimsReturningError

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomLoginRequestHeaderClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the login request header. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomLoginRequestValues

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomLoginRequestValues(customLoginRequestValues *foundation.NSArray[*foundation.NSURLQueryItem])

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomNonceRequestValues

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomNonceRequestValues(customNonceRequestValues *foundation.NSArray[*foundation.NSURLQueryItem])

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomRefreshRequestBodyClaimsReturningError

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomRefreshRequestBodyClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the refresh request bode. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomRefreshRequestHeaderClaimsReturningError

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomRefreshRequestHeaderClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the refresh request header. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomRefreshRequestValues

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomRefreshRequestValues(customRefreshRequestValues *foundation.NSArray[*foundation.NSURLQueryItem])

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetCustomRequestJWTParameterName

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetCustomRequestJWTParameterName(customRequestJWTParameterName *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetDeviceContext

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetDeviceContext(deviceContext *foundation.NSData)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetFederationMEXURL

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetFederationMEXURL(federationMEXURL *foundation.NSURL)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetFederationMEXURLKeypath

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetFederationMEXURLKeypath(federationMEXURLKeypath *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetFederationPredicate

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetFederationPredicate(federationPredicate *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetFederationRequestURN

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetFederationRequestURN(federationRequestURN *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetFederationType

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetFederationUserPreauthenticationURL

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetFederationUserPreauthenticationURL(federationUserPreauthenticationURL *foundation.NSURL)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetGroupRequestClaimName

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetGroupRequestClaimName(groupRequestClaimName *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetGroupResponseClaimName

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetGroupResponseClaimName(groupResponseClaimName *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetHpkeAuthPublicKey

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetHpkeAuthPublicKey(hpkeAuthPublicKey unsafe.Pointer)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetHpkePreSharedKey

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetHpkePreSharedKey(hpkePreSharedKey *foundation.NSData)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetHpkePreSharedKeyID

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetHpkePreSharedKeyID(hpkePreSharedKeyID *foundation.NSData)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetIncludePreviousRefreshTokenInLoginRequest

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetIncludePreviousRefreshTokenInLoginRequest(includePreviousRefreshTokenInLoginRequest bool)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetInvalidCredentialPredicate

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetInvalidCredentialPredicate(invalidCredentialPredicate *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetJwksEndpointURL

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetJwksEndpointURL(jwksEndpointURL *foundation.NSURL)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetJwksTrustedRootCertificates

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetJwksTrustedRootCertificates(jwksTrustedRootCertificates *foundation.NSArray[objc.ID])

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetKerberosTicketMappings

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetKeyEndpointURL

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetKeyEndpointURL(keyEndpointURL *foundation.NSURL)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetLoginRequestEncryptionAPVPrefix

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetLoginRequestEncryptionAPVPrefix(loginRequestEncryptionAPVPrefix *foundation.NSData)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetLoginRequestEncryptionAlgorithm

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetLoginRequestEncryptionAlgorithm(loginRequestEncryptionAlgorithm *foundation.NSNumber)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetLoginRequestEncryptionPublicKey

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetLoginRequestEncryptionPublicKey(loginRequestEncryptionPublicKey unsafe.Pointer)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetLoginRequestHPKEPreSharedKey

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetLoginRequestHPKEPreSharedKey(loginRequestHPKEPreSharedKey *foundation.NSData)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetLoginRequestHPKEPreSharedKeyID

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetLoginRequestHPKEPreSharedKeyID(loginRequestHPKEPreSharedKeyID *foundation.NSData)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetNonceEndpointURL

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetNonceEndpointURL(nonceEndpointURL *foundation.NSURL)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetNonceResponseKeypath

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetNonceResponseKeypath(nonceResponseKeypath *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetPreviousRefreshTokenClaimName

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetPreviousRefreshTokenClaimName(previousRefreshTokenClaimName *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetRefreshEndpointURL

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetRefreshEndpointURL(refreshEndpointURL *foundation.NSURL)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetServerNonceClaimName

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetServerNonceClaimName(serverNonceClaimName *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetTokenEndpointURL

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetTokenEndpointURL(tokenEndpointURL *foundation.NSURL)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetUniqueIdentifierClaimName

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetUniqueIdentifierClaimName(uniqueIdentifierClaimName *foundation.NSString)

func (*ASAuthorizationProviderExtensionLoginConfiguration) SetUserSecureEnclaveKeyBiometricPolicy

func (o *ASAuthorizationProviderExtensionLoginConfiguration) SetUserSecureEnclaveKeyBiometricPolicy(userSecureEnclaveKeyBiometricPolicy ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicy)

func (*ASAuthorizationProviderExtensionLoginConfiguration) TokenEndpointURL

@abstract Token Endpoint URL for login request.

func (*ASAuthorizationProviderExtensionLoginConfiguration) UniqueIdentifierClaimName

@abstract The claim name for the user unique identifier in the id token. Defaults to "sub".

func (*ASAuthorizationProviderExtensionLoginConfiguration) UserSecureEnclaveKeyBiometricPolicy

@abstract The biometric policy for User Secure Enclave Key authentication.

type ASAuthorizationProviderExtensionLoginManager

type ASAuthorizationProviderExtensionLoginManager struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationproviderextensionloginmanager

func ASAuthorizationProviderExtensionLoginManagerFromID

func ASAuthorizationProviderExtensionLoginManagerFromID(id objc.ID) *ASAuthorizationProviderExtensionLoginManager

func (*ASAuthorizationProviderExtensionLoginManager) AttestKeyClientDataHashCompletion

func (o *ASAuthorizationProviderExtensionLoginManager) AttestKeyClientDataHashCompletion(keyType ASAuthorizationProviderExtensionKeyType, clientDataHash *foundation.NSData, completion objc.Block)

@abstract Provides a new or cached attestation for the specified key type. @param keyType The key type for the attestation. @param clientDataHash A SHA256 hash of a unique, single-use data block that embeds a challenge from your server. @param completion A closure that the method calls upon completion with the following parameters: * attestationCertificates An array of certificates that verify the validity of the key associated with the keyType. Send this to your server for processing. * error A DCError instance that indicates the reason for failure, or nil on success.

func (*ASAuthorizationProviderExtensionLoginManager) AttestPendingKeyClientDataHashCompletion

func (o *ASAuthorizationProviderExtensionLoginManager) AttestPendingKeyClientDataHashCompletion(keyType ASAuthorizationProviderExtensionKeyType, clientDataHash *foundation.NSData, completion objc.Block)

@abstract Provides a new or cached attestation for the specified pending key type. @param keyType The pending key type for the attestation. @param clientDataHash A SHA256 hash of a unique, single-use data block that embeds a challenge from your server. @param completion A closure that the method calls upon completion with the following parameters: * attestationCertificates An array of certificates that verify the validity of the pending key associated with the keyType. Send this to your server for processing. * error A DCError instance that indicates the reason for failure, or nil on success.

func (*ASAuthorizationProviderExtensionLoginManager) AuthenticationMethod

@abstract Returns the authentication method used for the device.

func (*ASAuthorizationProviderExtensionLoginManager) BeginKeyRotationForKeyType

@abstract Generates a new key for the specified platform SSO key type using the strongest supported key strength returning the new key. Nil is returned if there is an error generating the new key. @param keyType The key type to retrieve.

func (*ASAuthorizationProviderExtensionLoginManager) CompleteKeyRotationForKeyType

@abstract Completes rotation for the key to replace the previous key. @param keyType The key type to retrieve.

func (*ASAuthorizationProviderExtensionLoginManager) CopyIdentityForKeyType

@abstract Retrieves the identity for the specified platform SSO key type. @param keyType The key type to retrieve.

func (*ASAuthorizationProviderExtensionLoginManager) CopyKeyForKeyType

@abstract Retrieves the key for the specified platform SSO key type. @param keyType The key type to retrieve.

func (*ASAuthorizationProviderExtensionLoginManager) DecryptionKeysNeedRepair

func (o *ASAuthorizationProviderExtensionLoginManager) DecryptionKeysNeedRepair()

@abstract Requests that the decryption keys are repaired.

func (*ASAuthorizationProviderExtensionLoginManager) DeviceRegistrationsNeedsRepair

func (o *ASAuthorizationProviderExtensionLoginManager) DeviceRegistrationsNeedsRepair()

@abstract Requests that the device registration be run again to repair it.

func (*ASAuthorizationProviderExtensionLoginManager) ExtensionData

@abstract Returns the extension data from the MDM profile.

func (*ASAuthorizationProviderExtensionLoginManager) IsDeviceRegistered

func (o *ASAuthorizationProviderExtensionLoginManager) IsDeviceRegistered() bool

@abstract Returns YES if the current device completed registration.

func (*ASAuthorizationProviderExtensionLoginManager) IsUserRegistered

func (o *ASAuthorizationProviderExtensionLoginManager) IsUserRegistered() bool

@abstract Returns YES if current user completed registration.

func (*ASAuthorizationProviderExtensionLoginManager) LoginConfiguration

@abstract Retrieves or sets the current login configuration for the extension.

func (*ASAuthorizationProviderExtensionLoginManager) LoginUserName

@abstract The user name to use when authenticating with the identity provider. Deprecated: since macOS 14.0.

func (*ASAuthorizationProviderExtensionLoginManager) PresentRegistrationViewControllerWithCompletion

func (o *ASAuthorizationProviderExtensionLoginManager) PresentRegistrationViewControllerWithCompletion(completion func(unsafe.Pointer))

@abstract Asks authorization service to show extension view controller for registration. If the controller cannot be shown an error is returned. This is only valid during registration.

func (*ASAuthorizationProviderExtensionLoginManager) RegistrationToken

@abstract Returns the device registration token from the MDM profile.

func (*ASAuthorizationProviderExtensionLoginManager) ResetDeviceKeys

func (o *ASAuthorizationProviderExtensionLoginManager) ResetDeviceKeys()

@abstract Creates new Encryption, and Signing keys for the device or user. The old keys will be destroyed.

func (*ASAuthorizationProviderExtensionLoginManager) ResetKeys

@abstract Creates new Encryption, Signing, and Secure Enclave keys for the user. The old keys will be destroyed.

func (*ASAuthorizationProviderExtensionLoginManager) ResetUserSecureEnclaveKey

func (o *ASAuthorizationProviderExtensionLoginManager) ResetUserSecureEnclaveKey()

@abstract Creates new Encryption, Signing, and Secure Enclave keys for the user. The old keys will be destroyed.

func (*ASAuthorizationProviderExtensionLoginManager) SaveCertificateKeyType

@abstract Saves the provided certificate for the key type. @param certificate The certificate to save. @param keyType The key type for the certificate.

func (*ASAuthorizationProviderExtensionLoginManager) SaveLoginConfigurationError

Saves or replaces the login configration. @param loginConfiguration The login configration to use. @param error The error when there are validation errors or nil.

func (*ASAuthorizationProviderExtensionLoginManager) SaveUserLoginConfigurationError

func (o *ASAuthorizationProviderExtensionLoginManager) SaveUserLoginConfigurationError(userLoginConfiguration *ASAuthorizationProviderExtensionUserLoginConfiguration) (bool, error)

Saves or replaces the user login configration. @param userLoginConfiguration The user login configration to use. @param error The error when there are validation errors or nil.

func (*ASAuthorizationProviderExtensionLoginManager) SetLoginUserName deprecated

func (o *ASAuthorizationProviderExtensionLoginManager) SetLoginUserName(loginUserName unsafe.Pointer)

Deprecated: since macOS 14.0.

func (*ASAuthorizationProviderExtensionLoginManager) SetSsoTokens

func (*ASAuthorizationProviderExtensionLoginManager) SsoTokens

@abstract Retrieves or sets the current SSO tokens response for the current user and extension.

func (*ASAuthorizationProviderExtensionLoginManager) UserLoginConfiguration

@abstract Retrieves the current user login configuration for the extension.

func (*ASAuthorizationProviderExtensionLoginManager) UserNeedsReauthenticationWithCompletion

func (o *ASAuthorizationProviderExtensionLoginManager) UserNeedsReauthenticationWithCompletion(completion func(unsafe.Pointer))

@abstract Requests AppSSOAgent reauthenticate the current user for the current extension. This is used when the tokens are revoked, or expired and need to be requested again.

func (*ASAuthorizationProviderExtensionLoginManager) UserRegistrationsNeedsRepair

func (o *ASAuthorizationProviderExtensionLoginManager) UserRegistrationsNeedsRepair()

@abstract Requests that user registration be run again for the current user to repair it.

type ASAuthorizationProviderExtensionPlatformSSOProtocolVersion

type ASAuthorizationProviderExtensionPlatformSSOProtocolVersion int64
const (
	ASAuthorizationProviderExtensionPlatformSSOProtocolVersion1_0 ASAuthorizationProviderExtensionPlatformSSOProtocolVersion = 0
	ASAuthorizationProviderExtensionPlatformSSOProtocolVersion2_0 ASAuthorizationProviderExtensionPlatformSSOProtocolVersion = 1
)

func (ASAuthorizationProviderExtensionPlatformSSOProtocolVersion) String

type ASAuthorizationProviderExtensionRegistrationHandler

type ASAuthorizationProviderExtensionRegistrationHandler interface {
	BeginDeviceRegistrationUsingLoginManagerOptionsCompletion(loginManager *ASAuthorizationProviderExtensionLoginManager, options ASAuthorizationProviderExtensionRequestOptions, completion func(ASAuthorizationProviderExtensionRegistrationResult))
	BeginUserRegistrationUsingLoginManagerUserNameAuthenticationMethodOptionsCompletion(loginManager *ASAuthorizationProviderExtensionLoginManager, userName *foundation.NSString, authenticationMethod ASAuthorizationProviderExtensionAuthenticationMethod, options ASAuthorizationProviderExtensionRequestOptions, completion func(ASAuthorizationProviderExtensionRegistrationResult))
}

ASAuthorizationProviderExtensionRegistrationHandler wraps the ObjC protocol ASAuthorizationProviderExtensionRegistrationHandler.

type ASAuthorizationProviderExtensionRegistrationResult

type ASAuthorizationProviderExtensionRegistrationResult int64
const (
	ASAuthorizationProviderExtensionRegistrationResultSuccess               ASAuthorizationProviderExtensionRegistrationResult = 0
	ASAuthorizationProviderExtensionRegistrationResultFailed                ASAuthorizationProviderExtensionRegistrationResult = 1
	ASAuthorizationProviderExtensionRegistrationResultUserInterfaceRequired ASAuthorizationProviderExtensionRegistrationResult = 2
	ASAuthorizationProviderExtensionRegistrationResultFailedNoRetry         ASAuthorizationProviderExtensionRegistrationResult = 3
)

func (ASAuthorizationProviderExtensionRegistrationResult) String

type ASAuthorizationProviderExtensionRequestOptions

type ASAuthorizationProviderExtensionRequestOptions uint64
const (
	ASAuthorizationProviderExtensionRequestOptionsNone                           ASAuthorizationProviderExtensionRequestOptions = 0
	ASAuthorizationProviderExtensionRequestOptionsUserInteractionEnabled         ASAuthorizationProviderExtensionRequestOptions = 1
	ASAuthorizationProviderExtensionRequestOptionsRegistrationRepair             ASAuthorizationProviderExtensionRequestOptions = 2
	ASAuthorizationProviderExtensionRequestOptionsRegistrationSharedDeviceKeys   ASAuthorizationProviderExtensionRequestOptions = 4
	ASAuthorizationProviderExtensionRequestOptionsRegistrationDeviceKeyMigration ASAuthorizationProviderExtensionRequestOptions = 8
	ASAuthorizationProviderExtensionRequestOptionsStrongerKeyAvailable           ASAuthorizationProviderExtensionRequestOptions = 16
	ASAuthorizationProviderExtensionRequestOptionsUserKeyInvalid                 ASAuthorizationProviderExtensionRequestOptions = 32
	ASAuthorizationProviderExtensionRequestOptionsSetupAssistant                 ASAuthorizationProviderExtensionRequestOptions = 64
)

func (ASAuthorizationProviderExtensionRequestOptions) String

type ASAuthorizationProviderExtensionSupportedGrantTypes

type ASAuthorizationProviderExtensionSupportedGrantTypes int64
const (
	ASAuthorizationProviderExtensionSupportedGrantTypesNone      ASAuthorizationProviderExtensionSupportedGrantTypes = 0
	ASAuthorizationProviderExtensionSupportedGrantTypesPassword  ASAuthorizationProviderExtensionSupportedGrantTypes = 1
	ASAuthorizationProviderExtensionSupportedGrantTypesJWTBearer ASAuthorizationProviderExtensionSupportedGrantTypes = 2
	ASAuthorizationProviderExtensionSupportedGrantTypesSAML1_1   ASAuthorizationProviderExtensionSupportedGrantTypes = 4
	ASAuthorizationProviderExtensionSupportedGrantTypesSAML2_0   ASAuthorizationProviderExtensionSupportedGrantTypes = 8
)

func (ASAuthorizationProviderExtensionSupportedGrantTypes) String

type ASAuthorizationProviderExtensionUserLoginConfiguration

type ASAuthorizationProviderExtensionUserLoginConfiguration struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationproviderextensionuserloginconfiguration

func ASAuthorizationProviderExtensionUserLoginConfigurationFromID

func ASAuthorizationProviderExtensionUserLoginConfigurationFromID(id objc.ID) *ASAuthorizationProviderExtensionUserLoginConfiguration

func (*ASAuthorizationProviderExtensionUserLoginConfiguration) InitWithLoginUserName

func (*ASAuthorizationProviderExtensionUserLoginConfiguration) LoginUserName

@abstract The user name to use when authenticating with the identity provider.

func (*ASAuthorizationProviderExtensionUserLoginConfiguration) SetCustomAssertionRequestBodyClaimsReturningError

func (o *ASAuthorizationProviderExtensionUserLoginConfiguration) SetCustomAssertionRequestBodyClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the embedded assertion request body. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionUserLoginConfiguration) SetCustomAssertionRequestHeaderClaimsReturningError

func (o *ASAuthorizationProviderExtensionUserLoginConfiguration) SetCustomAssertionRequestHeaderClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the embedded assertion request header. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionUserLoginConfiguration) SetCustomLoginRequestBodyClaimsReturningError

func (o *ASAuthorizationProviderExtensionUserLoginConfiguration) SetCustomLoginRequestBodyClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the login request body. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionUserLoginConfiguration) SetCustomLoginRequestHeaderClaimsReturningError

func (o *ASAuthorizationProviderExtensionUserLoginConfiguration) SetCustomLoginRequestHeaderClaimsReturningError(claims *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

@abstract Sets custom claims to be added to the login request header. @param claims The claims to be added. It must serialize as valid JSON to be accepted. @param error Nil or an NSError indicating why the claims were rejected. @returns YES when successful and NO when claims are rejected.

func (*ASAuthorizationProviderExtensionUserLoginConfiguration) SetLoginUserName

type ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicy

type ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicy uint64
const (
	ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicyTouchIDOrWatchCurrentSet ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicy = 1
	ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicyTouchIDOrWatchAny        ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicy = 2
	ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicyReuseDuringUnlock        ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicy = 4
	ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicyPasswordFallback         ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicy = 8
)

func (ASAuthorizationProviderExtensionUserSecureEnclaveKeyBiometricPolicy) String

type ASAuthorizationPublicKeyCredentialAssertion

type ASAuthorizationPublicKeyCredentialAssertion interface {
	ASPublicKeyCredential
	RawAuthenticatorData() *foundation.NSData
	UserID() *foundation.NSData
	Signature() *foundation.NSData
}

ASAuthorizationPublicKeyCredentialAssertion wraps the ObjC protocol ASAuthorizationPublicKeyCredentialAssertion.

type ASAuthorizationPublicKeyCredentialAssertionRequest

type ASAuthorizationPublicKeyCredentialAssertionRequest interface {
	foundation.NSSecureCoding
	foundation.NSCopying
	Challenge() *foundation.NSData
	SetChallenge(challenge *foundation.NSData)
	RelyingPartyIdentifier() *foundation.NSString
	SetRelyingPartyIdentifier(relyingPartyIdentifier *foundation.NSString)
	AllowedCredentials() *foundation.NSArray[ASAuthorizationPublicKeyCredentialDescriptor]
	SetAllowedCredentials(allowedCredentials *foundation.NSArray[ASAuthorizationPublicKeyCredentialDescriptor])
	UserVerificationPreference() *foundation.NSString
	SetUserVerificationPreference(userVerificationPreference *foundation.NSString)
}

ASAuthorizationPublicKeyCredentialAssertionRequest wraps the ObjC protocol ASAuthorizationPublicKeyCredentialAssertionRequest.

type ASAuthorizationPublicKeyCredentialAttachment

type ASAuthorizationPublicKeyCredentialAttachment int64
const (
	ASAuthorizationPublicKeyCredentialAttachmentPlatform      ASAuthorizationPublicKeyCredentialAttachment = 0
	ASAuthorizationPublicKeyCredentialAttachmentCrossPlatform ASAuthorizationPublicKeyCredentialAttachment = 1
)

func (ASAuthorizationPublicKeyCredentialAttachment) String

type ASAuthorizationPublicKeyCredentialDescriptor

type ASAuthorizationPublicKeyCredentialDescriptor interface {
	foundation.NSSecureCoding
	foundation.NSCopying
}

ASAuthorizationPublicKeyCredentialDescriptor wraps the ObjC protocol ASAuthorizationPublicKeyCredentialDescriptor.

type ASAuthorizationPublicKeyCredentialLargeBlobAssertionInput

type ASAuthorizationPublicKeyCredentialLargeBlobAssertionInput struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationpublickeycredentiallargeblobassertioninput

func (*ASAuthorizationPublicKeyCredentialLargeBlobAssertionInput) DataToWrite

func (*ASAuthorizationPublicKeyCredentialLargeBlobAssertionInput) Operation

func (*ASAuthorizationPublicKeyCredentialLargeBlobAssertionInput) SetDataToWrite

type ASAuthorizationPublicKeyCredentialLargeBlobAssertionOperation

type ASAuthorizationPublicKeyCredentialLargeBlobAssertionOperation int64
const (
	ASAuthorizationPublicKeyCredentialLargeBlobAssertionOperationRead  ASAuthorizationPublicKeyCredentialLargeBlobAssertionOperation = 0
	ASAuthorizationPublicKeyCredentialLargeBlobAssertionOperationWrite ASAuthorizationPublicKeyCredentialLargeBlobAssertionOperation = 1
)

func (ASAuthorizationPublicKeyCredentialLargeBlobAssertionOperation) String

type ASAuthorizationPublicKeyCredentialLargeBlobAssertionOutput

type ASAuthorizationPublicKeyCredentialLargeBlobAssertionOutput struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationpublickeycredentiallargeblobassertionoutput

func (*ASAuthorizationPublicKeyCredentialLargeBlobAssertionOutput) DidWrite

func (*ASAuthorizationPublicKeyCredentialLargeBlobAssertionOutput) ReadData

type ASAuthorizationPublicKeyCredentialLargeBlobRegistrationOutput

type ASAuthorizationPublicKeyCredentialLargeBlobRegistrationOutput struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationpublickeycredentiallargeblobregistrationoutput

func (*ASAuthorizationPublicKeyCredentialLargeBlobRegistrationOutput) IsSupported

type ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirement

type ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirement int64
const (
	ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirementRequired  ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirement = 0
	ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirementPreferred ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirement = 1
)

func (ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirement) String

type ASAuthorizationPublicKeyCredentialPRFAssertionInputValues

type ASAuthorizationPublicKeyCredentialPRFAssertionInputValues struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationpublickeycredentialprfassertioninputvalues

func (*ASAuthorizationPublicKeyCredentialPRFAssertionInputValues) InitWithSaltInput1SaltInput2

func (*ASAuthorizationPublicKeyCredentialPRFAssertionInputValues) SaltInput1

func (*ASAuthorizationPublicKeyCredentialPRFAssertionInputValues) SaltInput2

type ASAuthorizationPublicKeyCredentialPRFAssertionOutput

type ASAuthorizationPublicKeyCredentialPRFAssertionOutput struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationpublickeycredentialprfassertionoutput

func ASAuthorizationPublicKeyCredentialPRFAssertionOutputFromID

func ASAuthorizationPublicKeyCredentialPRFAssertionOutputFromID(id objc.ID) *ASAuthorizationPublicKeyCredentialPRFAssertionOutput

func (*ASAuthorizationPublicKeyCredentialPRFAssertionOutput) First

func (*ASAuthorizationPublicKeyCredentialPRFAssertionOutput) Second

type ASAuthorizationPublicKeyCredentialPRFRegistrationInput

type ASAuthorizationPublicKeyCredentialPRFRegistrationInput struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationpublickeycredentialprfregistrationinput

func ASAuthorizationPublicKeyCredentialPRFRegistrationInputCheckForSupport

func ASAuthorizationPublicKeyCredentialPRFRegistrationInputCheckForSupport() *ASAuthorizationPublicKeyCredentialPRFRegistrationInput

func ASAuthorizationPublicKeyCredentialPRFRegistrationInputFromID

func ASAuthorizationPublicKeyCredentialPRFRegistrationInputFromID(id objc.ID) *ASAuthorizationPublicKeyCredentialPRFRegistrationInput

func (*ASAuthorizationPublicKeyCredentialPRFRegistrationInput) InputValues

func (*ASAuthorizationPublicKeyCredentialPRFRegistrationInput) ShouldCheckForSupport

type ASAuthorizationPublicKeyCredentialPRFRegistrationOutput

type ASAuthorizationPublicKeyCredentialPRFRegistrationOutput struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationpublickeycredentialprfregistrationoutput

func ASAuthorizationPublicKeyCredentialPRFRegistrationOutputFromID

func ASAuthorizationPublicKeyCredentialPRFRegistrationOutputFromID(id objc.ID) *ASAuthorizationPublicKeyCredentialPRFRegistrationOutput

func (*ASAuthorizationPublicKeyCredentialPRFRegistrationOutput) First

func (*ASAuthorizationPublicKeyCredentialPRFRegistrationOutput) IsSupported

func (*ASAuthorizationPublicKeyCredentialPRFRegistrationOutput) Second

type ASAuthorizationPublicKeyCredentialParameters

type ASAuthorizationPublicKeyCredentialParameters struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationpublickeycredentialparameters

func ASAuthorizationPublicKeyCredentialParametersFromID

func ASAuthorizationPublicKeyCredentialParametersFromID(id objc.ID) *ASAuthorizationPublicKeyCredentialParameters

func (*ASAuthorizationPublicKeyCredentialParameters) Algorithm

@abstract A COSE algorithm indentifier.

func (*ASAuthorizationPublicKeyCredentialParameters) InitWithAlgorithm

type ASAuthorizationPublicKeyCredentialRegistration

type ASAuthorizationPublicKeyCredentialRegistration interface {
	ASPublicKeyCredential
	RawAttestationObject() *foundation.NSData
}

ASAuthorizationPublicKeyCredentialRegistration wraps the ObjC protocol ASAuthorizationPublicKeyCredentialRegistration.

type ASAuthorizationPublicKeyCredentialRegistrationRequest

type ASAuthorizationPublicKeyCredentialRegistrationRequest interface {
	foundation.NSSecureCoding
	foundation.NSCopying
	RelyingPartyIdentifier() *foundation.NSString
	UserID() *foundation.NSData
	SetUserID(userID *foundation.NSData)
	Name() *foundation.NSString
	SetName(name *foundation.NSString)
	DisplayName() *foundation.NSString
	SetDisplayName(displayName *foundation.NSString)
	Challenge() *foundation.NSData
	SetChallenge(challenge *foundation.NSData)
	UserVerificationPreference() *foundation.NSString
	SetUserVerificationPreference(userVerificationPreference *foundation.NSString)
	AttestationPreference() *foundation.NSString
	SetAttestationPreference(attestationPreference *foundation.NSString)
}

ASAuthorizationPublicKeyCredentialRegistrationRequest wraps the ObjC protocol ASAuthorizationPublicKeyCredentialRegistrationRequest.

type ASAuthorizationRequest

type ASAuthorizationRequest struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationrequest

func ASAuthorizationRequestFromID

func ASAuthorizationRequestFromID(id objc.ID) *ASAuthorizationRequest

func (*ASAuthorizationRequest) Provider

@abstract The provider object that is being used to service this request

type ASAuthorizationSecurityKeyPublicKeyCredentialAssertion

type ASAuthorizationSecurityKeyPublicKeyCredentialAssertion struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationsecuritykeypublickeycredentialassertion

func ASAuthorizationSecurityKeyPublicKeyCredentialAssertionFromID

func ASAuthorizationSecurityKeyPublicKeyCredentialAssertionFromID(id objc.ID) *ASAuthorizationSecurityKeyPublicKeyCredentialAssertion

func (*ASAuthorizationSecurityKeyPublicKeyCredentialAssertion) AppID

Indicates that this assertion used the appid WebAuthn extension. This can only happen if the requesting app is a web browser and requested to use this extension.

func (*ASAuthorizationSecurityKeyPublicKeyCredentialAssertion) Prf

type ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest

type ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest struct {
	ASAuthorizationRequest
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationsecuritykeypublickeycredentialassertionrequest

func (*ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest) AllowedCredentials

A list of descriptors indicating credentials that may be used to sign in. If this is non-empty, only credentials matching the provided descriptors can be used when authenticating.

func (*ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest) AppID

Use this value to request the appid WebAuthn extension. This can only be requested by web browsers.

func (*ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest) Prf

func (*ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest) SetAllowedCredentials

func (*ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest) SetAppID

func (*ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest) SetPrf

type ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor

type ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationsecuritykeypublickeycredentialdescriptor

func ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorFromID

func ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorFromID(id objc.ID) *ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor

func (*ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor) InitWithCredentialIDTransports

func (*ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor) SetTransports

func (*ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor) Transports

@abstract An array indicating transports for the credential indicated by credentialID.

type ASAuthorizationSecurityKeyPublicKeyCredentialProvider

type ASAuthorizationSecurityKeyPublicKeyCredentialProvider struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationsecuritykeypublickeycredentialprovider

func ASAuthorizationSecurityKeyPublicKeyCredentialProviderFromID

func ASAuthorizationSecurityKeyPublicKeyCredentialProviderFromID(id objc.ID) *ASAuthorizationSecurityKeyPublicKeyCredentialProvider

func (*ASAuthorizationSecurityKeyPublicKeyCredentialProvider) CreateCredentialAssertionRequestWithChallenge

@abstract Create a request to authenticate using an existing credential. @param challenge The challenge to sign.

func (*ASAuthorizationSecurityKeyPublicKeyCredentialProvider) CreateCredentialRegistrationRequestWithChallengeDisplayNameNameUserID

func (o *ASAuthorizationSecurityKeyPublicKeyCredentialProvider) CreateCredentialRegistrationRequestWithChallengeDisplayNameNameUserID(challenge *foundation.NSData, displayName *foundation.NSString, name *foundation.NSString, userID *foundation.NSData) *ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest

@abstract Create a request to register a new security key credential. @param challenge The challenge to sign. @param displayName The display name for the new credential. @param name The name for the new credential. @param userID An identifier to be stored alongside the credential, which will be returned with the credential when it is used to authenticate.

func (*ASAuthorizationSecurityKeyPublicKeyCredentialProvider) InitWithRelyingPartyIdentifier

func (*ASAuthorizationSecurityKeyPublicKeyCredentialProvider) RelyingPartyIdentifier

@abstract The Relying Party identifier used for all requests created by this object.

type ASAuthorizationSecurityKeyPublicKeyCredentialRegistration

type ASAuthorizationSecurityKeyPublicKeyCredentialRegistration struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationsecuritykeypublickeycredentialregistration

func (*ASAuthorizationSecurityKeyPublicKeyCredentialRegistration) Prf

func (*ASAuthorizationSecurityKeyPublicKeyCredentialRegistration) Transports

@abstract A list of transports that the authenticator is believed to support, if this could be determined.

type ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest

type ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest struct {
	ASAuthorizationRequest
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationsecuritykeypublickeycredentialregistrationrequest

func (*ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest) CredentialParameters

@abstract A list of parameters for the new credential which are supported by the Relying Party. The authenticator should choose from these parameters when creating the credential.

func (*ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest) ExcludedCredentials

@abstract A list of descriptors indicating credentials which must not already exist on the authenticator. If a credential already exists on the authenticator which matches one or more of these descriptors, a new credential will not be created and authentication will fail.

func (*ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest) Prf

func (*ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest) ResidentKeyPreference

@abstract A preference whether the authenticator should store the private key of the newly created credential.

func (*ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest) SetCredentialParameters

func (*ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest) SetExcludedCredentials

func (*ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest) SetPrf

func (*ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest) SetResidentKeyPreference

func (o *ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest) SetResidentKeyPreference(residentKeyPreference *foundation.NSString)

type ASAuthorizationSingleSignOnCredential

type ASAuthorizationSingleSignOnCredential struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationsinglesignoncredential

func ASAuthorizationSingleSignOnCredentialFromID

func ASAuthorizationSingleSignOnCredentialFromID(id objc.ID) *ASAuthorizationSingleSignOnCredential

func (*ASAuthorizationSingleSignOnCredential) AccessToken

@abstract An access token used to access other systems with the authorized scopes.

func (*ASAuthorizationSingleSignOnCredential) AuthenticatedResponse

@abstract The complete AuthenticationServices extension response with the additional outputs used by the specific technology used by the Authorization Server instance and AuthenticationServices Extension. @note for some operations all properties can be null and the response will indicate just successful result of the operation.

func (*ASAuthorizationSingleSignOnCredential) AuthorizedScopes

@abstract This value will contain a list of scopes for which the user provided authorization. These may contain a subset of the requested scopes on @see ASAuthorizationOpenIDRequest. The application should query this value to identify which scopes were returned as it maybe different from ones requested.

func (*ASAuthorizationSingleSignOnCredential) IdentityToken

@abstract A JSON Web Token (JWT) used to communicate information about the identity of the user in a secure way to the app.

func (*ASAuthorizationSingleSignOnCredential) PrivateKeys

@abstract Private SecKeys returned from the AuthenticationServices extension.

func (*ASAuthorizationSingleSignOnCredential) State

@abstract A state returned from the AuthenticationServices extension.

type ASAuthorizationSingleSignOnProvider

type ASAuthorizationSingleSignOnProvider struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationsinglesignonprovider

func ASAuthorizationSingleSignOnProviderAuthorizationProviderWithIdentityProviderURL

func ASAuthorizationSingleSignOnProviderAuthorizationProviderWithIdentityProviderURL(url *foundation.NSURL) *ASAuthorizationSingleSignOnProvider

@abstract To get the right extension the identity provider main URL has to be provided. The URL is even part of the extension using assosiated domains mechanism or can be configured by MDM profile.

func ASAuthorizationSingleSignOnProviderFromID

func ASAuthorizationSingleSignOnProviderFromID(id objc.ID) *ASAuthorizationSingleSignOnProvider

func (*ASAuthorizationSingleSignOnProvider) CanPerformAuthorization

func (o *ASAuthorizationSingleSignOnProvider) CanPerformAuthorization() bool

@abstract Returns YES if the configured provider is capable of performing authorization within a given configuration.

func (*ASAuthorizationSingleSignOnProvider) CreateRequest

func (*ASAuthorizationSingleSignOnProvider) Url

type ASAuthorizationSingleSignOnRequest

type ASAuthorizationSingleSignOnRequest struct {
	ASAuthorizationOpenIDRequest
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationsinglesignonrequest

func ASAuthorizationSingleSignOnRequestFromID

func ASAuthorizationSingleSignOnRequestFromID(id objc.ID) *ASAuthorizationSingleSignOnRequest

func (*ASAuthorizationSingleSignOnRequest) AuthorizationOptions

@abstract Parameters required by the specific Authorization Server which should be used by the selected Authorization Services extension for authorization.

func (*ASAuthorizationSingleSignOnRequest) IsUserInterfaceEnabled

func (o *ASAuthorizationSingleSignOnRequest) IsUserInterfaceEnabled() bool

@abstract Enables or disables the authorization user interface. @discussion The default values is YES. If user interface is not enabled, then the authorization will fail with @see ASAuthorizationErrorNotInteractive if it attempts to display the authorization user interface.

func (*ASAuthorizationSingleSignOnRequest) SetAuthorizationOptions

func (o *ASAuthorizationSingleSignOnRequest) SetAuthorizationOptions(authorizationOptions *foundation.NSArray[*foundation.NSURLQueryItem])

func (*ASAuthorizationSingleSignOnRequest) SetUserInterfaceEnabled

func (o *ASAuthorizationSingleSignOnRequest) SetUserInterfaceEnabled(userInterfaceEnabled bool)

type ASAuthorizationWebBrowserExternallyAuthenticatableRequest

type ASAuthorizationWebBrowserExternallyAuthenticatableRequest interface {
	AuthenticatedContext() *localauthentication.LAContext
	SetAuthenticatedContext(authenticatedContext *localauthentication.LAContext)
}

ASAuthorizationWebBrowserExternallyAuthenticatableRequest wraps the ObjC protocol ASAuthorizationWebBrowserExternallyAuthenticatableRequest.

type ASAuthorizationWebBrowserPlatformPublicKeyCredential

type ASAuthorizationWebBrowserPlatformPublicKeyCredential struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationwebbrowserplatformpublickeycredential

func ASAuthorizationWebBrowserPlatformPublicKeyCredentialFromID

func ASAuthorizationWebBrowserPlatformPublicKeyCredentialFromID(id objc.ID) *ASAuthorizationWebBrowserPlatformPublicKeyCredential

func (*ASAuthorizationWebBrowserPlatformPublicKeyCredential) CredentialID

A unique identifier for this credential.

func (*ASAuthorizationWebBrowserPlatformPublicKeyCredential) CustomTitle

A user-specified title for the credential.

func (*ASAuthorizationWebBrowserPlatformPublicKeyCredential) Name

The user name of the saved credential.

func (*ASAuthorizationWebBrowserPlatformPublicKeyCredential) ProviderName

The localized name of the credential provider that provided this passkey.

func (*ASAuthorizationWebBrowserPlatformPublicKeyCredential) RelyingParty

The "relying party" (generally website) the credential was saved for.

func (*ASAuthorizationWebBrowserPlatformPublicKeyCredential) UserHandle

A unique identifier for the user account associated with this credential. One account may have multiple associated credentials.

type ASAuthorizationWebBrowserPlatformPublicKeyCredentialAssertionRequest

type ASAuthorizationWebBrowserPlatformPublicKeyCredentialAssertionRequest interface {
	ClientData() *ASPublicKeyCredentialClientData
	ShouldShowHybridTransport() bool
	SetShouldShowHybridTransport(shouldShowHybridTransport bool)
}

ASAuthorizationWebBrowserPlatformPublicKeyCredentialAssertionRequest wraps the ObjC protocol ASAuthorizationWebBrowserPlatformPublicKeyCredentialAssertionRequest.

type ASAuthorizationWebBrowserPlatformPublicKeyCredentialProvider

type ASAuthorizationWebBrowserPlatformPublicKeyCredentialProvider interface {
	CreateCredentialRegistrationRequestWithClientDataNameUserID(clientData *ASPublicKeyCredentialClientData, name *foundation.NSString, userID *foundation.NSData) *ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest
	CreateCredentialRegistrationRequestWithClientDataNameUserIDRequestStyle(clientData *ASPublicKeyCredentialClientData, name *foundation.NSString, userID *foundation.NSData, requestStyle ASAuthorizationPlatformPublicKeyCredentialRegistrationRequestStyle) *ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest
	CreateCredentialAssertionRequestWithClientData(clientData *ASPublicKeyCredentialClientData) *ASAuthorizationPlatformPublicKeyCredentialAssertionRequest
}

ASAuthorizationWebBrowserPlatformPublicKeyCredentialProvider wraps the ObjC protocol ASAuthorizationWebBrowserPlatformPublicKeyCredentialProvider.

type ASAuthorizationWebBrowserPlatformPublicKeyCredentialRegistrationRequest

type ASAuthorizationWebBrowserPlatformPublicKeyCredentialRegistrationRequest interface {
	ClientData() *ASPublicKeyCredentialClientData
	ExcludedCredentials() *foundation.NSArray[*ASAuthorizationPlatformPublicKeyCredentialDescriptor]
	SetExcludedCredentials(excludedCredentials *foundation.NSArray[*ASAuthorizationPlatformPublicKeyCredentialDescriptor])
	ShouldShowHybridTransport() bool
	SetShouldShowHybridTransport(shouldShowHybridTransport bool)
}

ASAuthorizationWebBrowserPlatformPublicKeyCredentialRegistrationRequest wraps the ObjC protocol ASAuthorizationWebBrowserPlatformPublicKeyCredentialRegistrationRequest.

type ASAuthorizationWebBrowserPublicKeyCredentialManager

type ASAuthorizationWebBrowserPublicKeyCredentialManager struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asauthorizationwebbrowserpublickeycredentialmanager

func ASAuthorizationWebBrowserPublicKeyCredentialManagerFromID

func ASAuthorizationWebBrowserPublicKeyCredentialManagerFromID(id objc.ID) *ASAuthorizationWebBrowserPublicKeyCredentialManager

func (*ASAuthorizationWebBrowserPublicKeyCredentialManager) AuthorizationStateForPlatformCredentials

func (*ASAuthorizationWebBrowserPublicKeyCredentialManager) Init

func (*ASAuthorizationWebBrowserPublicKeyCredentialManager) PlatformCredentialsForRelyingPartyCompletionHandler

func (o *ASAuthorizationWebBrowserPublicKeyCredentialManager) PlatformCredentialsForRelyingPartyCompletionHandler(relyingParty *foundation.NSString, completionHandler func(*foundation.NSArray[*ASAuthorizationWebBrowserPlatformPublicKeyCredential]))

func (*ASAuthorizationWebBrowserPublicKeyCredentialManager) RequestAuthorizationForPublicKeyCredentials

func (o *ASAuthorizationWebBrowserPublicKeyCredentialManager) RequestAuthorizationForPublicKeyCredentials(completionHandler func(ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState))

type ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState

type ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState int64
const (
	ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationStateAuthorized    ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState = 0
	ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationStateDenied        ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState = 1
	ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationStateNotDetermined ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState = 2
)

func (ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState) String

type ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialAssertionRequest

type ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialAssertionRequest interface {
	ClientData() *ASPublicKeyCredentialClientData
}

ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialAssertionRequest wraps the ObjC protocol ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialAssertionRequest.

type ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialProvider

type ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialProvider interface {
	CreateCredentialRegistrationRequestWithClientDataDisplayNameNameUserID(clientData *ASPublicKeyCredentialClientData, displayName *foundation.NSString, name *foundation.NSString, userID *foundation.NSData) *ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest
	CreateCredentialAssertionRequestWithClientData(clientData *ASPublicKeyCredentialClientData) *ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest
}

ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialProvider wraps the ObjC protocol ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialProvider.

type ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialRegistrationRequest

type ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialRegistrationRequest interface {
	ClientData() *ASPublicKeyCredentialClientData
}

ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialRegistrationRequest wraps the ObjC protocol ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialRegistrationRequest.

type ASCredentialIdentity

type ASCredentialIdentity interface {
}

ASCredentialIdentity wraps the ObjC protocol ASCredentialIdentity.

type ASCredentialIdentityStore

type ASCredentialIdentityStore struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/ascredentialidentitystore

func ASCredentialIdentityStoreFromID

func ASCredentialIdentityStoreFromID(id objc.ID) *ASCredentialIdentityStore

func ASCredentialIdentityStoreSharedStore

func ASCredentialIdentityStoreSharedStore() *ASCredentialIdentityStore

func (*ASCredentialIdentityStore) GetCredentialIdentitiesForServiceCredentialIdentityTypesCompletionHandler

func (o *ASCredentialIdentityStore) GetCredentialIdentitiesForServiceCredentialIdentityTypesCompletionHandler(serviceIdentifier *ASCredentialServiceIdentifier, credentialIdentityTypes ASCredentialIdentityTypes, completionHandler func(*foundation.NSArray[ASCredentialIdentity]))

@abstract List the currently saved credential identities. @param serviceIdentifier Specify a service identifier to get only credential identities for that service. Pass nil to get credential identities for all services. @param credentialIdentityTypes Specify one or more types to get only credential identities of those types. Pass ASCredentialIdentityTypesAll to get credential identities of all types. @discussion Call this method to get a list of all credential identities saved in the store for your extension.

func (*ASCredentialIdentityStore) GetCredentialIdentityStoreStateWithCompletion

func (o *ASCredentialIdentityStore) GetCredentialIdentityStoreStateWithCompletion(completion func(*ASCredentialIdentityStoreState))

@abstract Get the state of the credential identity store. @param completion completion handler to be called with the current state of the store. @discussion Call this method to find out the current state of the store before attempting to call other store methods. Use the provided ASCredentialIdentityStoreState to find out if the store is enabled and whether it supports incremental updates.

func (*ASCredentialIdentityStore) RemoveAllCredentialIdentitiesWithCompletion

func (o *ASCredentialIdentityStore) RemoveAllCredentialIdentitiesWithCompletion(completion func(bool, unsafe.Pointer))

@abstract Remove all existing credential identities from the store. @param completion optional completion handler to be called after removing all existing credential identities. If the operation fails, an error with domain ASCredentialIdentityStoreErrorDomain will be provided and none of the existing credential identities will be removed from the store.

func (*ASCredentialIdentityStore) RemoveCredentialIdentitiesCompletion

func (o *ASCredentialIdentityStore) RemoveCredentialIdentitiesCompletion(credentialIdentities *foundation.NSArray[*ASPasswordCredentialIdentity], completion func(bool, unsafe.Pointer))

@abstract Remove the given credential identities from the store. @param credentialIdentities array of ASPasswordCredentialIdentity objects to remove from the store. @param completion optional completion handler to be called after removing the credential identities. If the operation fails, an error with domain ASCredentialIdentityStoreErrorDomain will be provided and none of the objects in credentialIdentities will be removed from the store. @discussion Use this method only if the store supports incremental updates to remove previously added credentials to the store. Deprecated: since macOS 14.0.

func (*ASCredentialIdentityStore) RemoveCredentialIdentityEntriesCompletion

func (o *ASCredentialIdentityStore) RemoveCredentialIdentityEntriesCompletion(credentialIdentities *foundation.NSArray[ASCredentialIdentity], completion func(bool, unsafe.Pointer))

@abstract Remove the given credential identities from the store. @param credentialIdentities array of ASCredentialIdentity objects to remove from the store. @param completion optional completion handler to be called after removing the credential identities. If the operation fails, an error with domain ASCredentialIdentityStoreErrorDomain will be provided and none of the objects in credentialIdentities will be removed from the store. @discussion Use this method only if the store supports incremental updates to remove previously added credentials to the store.

func (*ASCredentialIdentityStore) ReplaceCredentialIdentitiesWithIdentitiesCompletion

func (o *ASCredentialIdentityStore) ReplaceCredentialIdentitiesWithIdentitiesCompletion(newCredentialIdentities *foundation.NSArray[*ASPasswordCredentialIdentity], completion func(bool, unsafe.Pointer))

@abstract Replace existing credential identities with new credential identities. @param newCredentialIdentities array of new credential identity objects to replace the old ones. @param completion an optional completion block to be called after the operation is finished. @discussion This method will delete all existing credential identities that are persisted in the store and replace them with the provided array of credential identities. If the operation fails, an error with domain ASCredentialIdentityStoreErrorDomain will be provided and none of the new credential identities will be saved. Deprecated: since macOS 14.0.

func (*ASCredentialIdentityStore) ReplaceCredentialIdentityEntriesCompletion

func (o *ASCredentialIdentityStore) ReplaceCredentialIdentityEntriesCompletion(newCredentialIdentities *foundation.NSArray[ASCredentialIdentity], completion func(bool, unsafe.Pointer))

@abstract Replace existing credential identities with new credential identities. @param newCredentialIdentities array of new credential identity objects to replace the old ones. @param completion an optional completion block to be called after the operation is finished. @discussion This method will delete all existing credential identities that are persisted in the store and replace them with the provided array of credential identities. If the operation fails, an error with domain ASCredentialIdentityStoreErrorDomain will be provided and none of the new credential identities will be saved.

func (*ASCredentialIdentityStore) SaveCredentialIdentitiesCompletion

func (o *ASCredentialIdentityStore) SaveCredentialIdentitiesCompletion(credentialIdentities *foundation.NSArray[*ASPasswordCredentialIdentity], completion func(bool, unsafe.Pointer))

@abstract Save the given credential identities to the store. @param credentialIdentities array of ASPasswordCredentialIdentity objects to save to the store. @param completion optional completion handler to be called after adding the credential identities. If the operation fails, an error with domain ASCredentialIdentityStoreErrorDomain will be provided and none of the objects in credentialIdentities will be saved to the store. @discussion If the store supports incremental updates, call this method to add new credential identities since the last time the store was updated. Otherwise, call this method to pass all credential identities. If some credential identities in credentialIdentities already exist in the store, they will be replaced by those from credentialIdentities. Deprecated: since macOS 14.0.

func (*ASCredentialIdentityStore) SaveCredentialIdentityEntriesCompletion

func (o *ASCredentialIdentityStore) SaveCredentialIdentityEntriesCompletion(credentialIdentities *foundation.NSArray[ASCredentialIdentity], completion func(bool, unsafe.Pointer))

@abstract Save the given credential identities to the store. @param credentialIdentities array of ASCredentialIdentity objects to save to the store. @param completion optional completion handler to be called after adding the credential identities. If the operation fails, an error with domain ASCredentialIdentityStoreErrorDomain will be provided and none of the objects in credentialIdentities will be saved to the store. @discussion If the store supports incremental updates, call this method to add new credential identities since the last time the store was updated. Otherwise, call this method to pass all credential identities. If some credential identities in credentialIdentities already exist in the store, they will be replaced by those from credentialIdentities.

type ASCredentialIdentityStoreErrorCode

type ASCredentialIdentityStoreErrorCode int64
const (
	ASCredentialIdentityStoreErrorCodeInternalError ASCredentialIdentityStoreErrorCode = 0
	ASCredentialIdentityStoreErrorCodeStoreDisabled ASCredentialIdentityStoreErrorCode = 1
	ASCredentialIdentityStoreErrorCodeStoreBusy     ASCredentialIdentityStoreErrorCode = 2
)

func (ASCredentialIdentityStoreErrorCode) String

type ASCredentialIdentityStoreState

type ASCredentialIdentityStoreState struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/ascredentialidentitystorestate

func ASCredentialIdentityStoreStateFromID

func ASCredentialIdentityStoreStateFromID(id objc.ID) *ASCredentialIdentityStoreState

func (*ASCredentialIdentityStoreState) IsEnabled

func (o *ASCredentialIdentityStoreState) IsEnabled() bool

@abstract Get the enabled state of the credential identity store. @result YES if the credential identity store is enabled. @dicussion You can only modify the credential identity store when it is enabled.

func (*ASCredentialIdentityStoreState) SupportsIncrementalUpdates

func (o *ASCredentialIdentityStoreState) SupportsIncrementalUpdates() bool

@abstract Get whether the credential identity store supports incremental updates. @result YES if the credential identity store supports incremental updates. @discussion You should examine the value returned by this property to find out if the credential identity store can accept incremental updates. If incremental updates are supported, you can update the credential identity store with only the new changes since the last time it was updated. Otherwise, you should update the credential identity store by adding all credential identities.

type ASCredentialIdentityTypes

type ASCredentialIdentityTypes uint64
const (
	ASCredentialIdentityTypesAll         ASCredentialIdentityTypes = 0
	ASCredentialIdentityTypesPassword    ASCredentialIdentityTypes = 1
	ASCredentialIdentityTypesPasskey     ASCredentialIdentityTypes = 2
	ASCredentialIdentityTypesOneTimeCode ASCredentialIdentityTypes = 4
)

func (ASCredentialIdentityTypes) String

func (e ASCredentialIdentityTypes) String() string

type ASCredentialProviderExtensionContext

type ASCredentialProviderExtensionContext struct {
	foundation.NSExtensionContext
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/ascredentialproviderextensioncontext

func ASCredentialProviderExtensionContextFromID

func ASCredentialProviderExtensionContextFromID(id objc.ID) *ASCredentialProviderExtensionContext

func (*ASCredentialProviderExtensionContext) CompleteAssertionRequestWithSelectedPasskeyCredentialCompletionHandler

func (o *ASCredentialProviderExtensionContext) CompleteAssertionRequestWithSelectedPasskeyCredentialCompletionHandler(credential *ASPasskeyAssertionCredential, completionHandler func(bool))

@abstract Complete the assertion request by providing the user selected passkey credential. @param credential the credential that the user has selected. Includes assertion response. @param completionHandler optionally contains any work which the extension may need to perform after the request has been completed, as a background-priority task. The `expired` parameter will be YES if the system decides to prematurely terminate a previous non-expiration invocation of the completionHandler. @discussion Calling this method will eventually dismiss the associated view controller.

func (*ASCredentialProviderExtensionContext) CompleteExtensionConfigurationRequest

func (o *ASCredentialProviderExtensionContext) CompleteExtensionConfigurationRequest()

@abstract Complete the request to configure the extension. @discussion Calling this method will eventually dismiss the associated view controller.

func (*ASCredentialProviderExtensionContext) CompleteOneTimeCodeRequestWithSelectedCredentialCompletionHandler

func (o *ASCredentialProviderExtensionContext) CompleteOneTimeCodeRequestWithSelectedCredentialCompletionHandler(credential *ASOneTimeCodeCredential, completionHandler func(bool))

@abstract Complete the request by providing the user selected one time code credential. @param credential the credential that the user has selected. @param completionHandler optionally contains any work which the extension may need to perform after the request has been completed, as a background-priority task. The `expired` parameter will be YES if the system decides to prematurely terminate a previous non-expiration invocation of the completionHandler. @discussion Calling this method will eventually dismiss the associated view controller.

func (*ASCredentialProviderExtensionContext) CompleteRegistrationRequestWithSelectedPasskeyCredentialCompletionHandler

func (o *ASCredentialProviderExtensionContext) CompleteRegistrationRequestWithSelectedPasskeyCredentialCompletionHandler(credential *ASPasskeyRegistrationCredential, completionHandler func(bool))

@abstract Complete the registration request by providing the newly created passkey credential. @param credential the credential that was created in response to the registration request. @param completionHandler optionally contains any work which the extension may need to perform after the request has been completed, as a background-priority task. The `expired` parameter will be YES if the system decides to prematurely terminate a previous non-expiration invocation of the completionHandler. @discussion Calling this method will eventually dismiss the associated view controller.

func (*ASCredentialProviderExtensionContext) CompleteRequestWithSelectedCredentialCompletionHandler

func (o *ASCredentialProviderExtensionContext) CompleteRequestWithSelectedCredentialCompletionHandler(credential *ASPasswordCredential, completionHandler func(bool))

@abstract Complete the request by providing the user selected credential. @param credential the credential that the user has selected. @param completionHandler optionally contains any work which the extension may need to perform after the request has been completed, as a background-priority task. The `expired` parameter will be YES if the system decides to prematurely terminate a previous non-expiration invocation of the completionHandler. @discussion Calling this method will eventually dismiss the associated view controller.

type ASCredentialProviderViewController

type ASCredentialProviderViewController struct {
	appkit.NSViewController
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/ascredentialproviderviewcontroller

func ASCredentialProviderViewControllerFromID

func ASCredentialProviderViewControllerFromID(id objc.ID) *ASCredentialProviderViewController

func (*ASCredentialProviderViewController) PerformPasskeyRegistrationWithoutUserInteractionIfPossible

func (o *ASCredentialProviderViewController) PerformPasskeyRegistrationWithoutUserInteractionIfPossible(registrationRequest *ASPasskeyCredentialRequest)

Perform a conditional passkey registration, if possible. This method will be called for handling conditional passkey registration requests. A conditional passkey registration request allows your extension to opportunistically register passkeys in the background, if and only if you believe the user is in a good state to do so. Your extension decides can decide what conditions make sense for whether to fulfill or reject this request. For example, an extension may decide to register a passkey only if all of the following conditions are met: - The user's vault is currently unlocked. - The user name for the registration request matches that for an existing saved password. - The matching saved password was filled recently. - The user does not already have a passkey for this account. Fulfilling this request should not remove a user's saved password for this account, but it may mean that the passkey will be preferred over the password in future AutoFill invocations, if both are supported. Your extension should complete this request by calling `-[ASCredentialProviderExtensionContext completeRegistrationRequestWithSelectedPasskeyCredential:completionHandler:]` or`-[ASCredentialProviderExtensionContext cancelRequestWithError:]`, like for standard registration requests. However, this request is not allowed to show UI and `ASExtensionErrorCodeUserInteractionRequired` will be treated like any other error. The intent of this API is to provide a method of performing a background registration only where easy and convenient, so no blocking UI or error should ever be shown. To indicate support for this feature, add `SupportsConditionalPasskeyRegistration` under the `ASCredentialProviderExtensionCapabilities` dictionary. Info.plist ├─ NSExtension ├─ NSExtensionAttributes ├─ ASCredentialProviderExtensionCapabilities ├─ SupportsConditionalPasskeyRegistration => true

func (*ASCredentialProviderViewController) PrepareCredentialListForServiceIdentifiers

func (o *ASCredentialProviderViewController) PrepareCredentialListForServiceIdentifiers(serviceIdentifiers *foundation.NSArray[*ASCredentialServiceIdentifier])

@abstract Prepare the view controller to show a list of credentials. @param serviceIdentifiers the array of service identifiers. @discussion This method is called by the system to prepare the extension's view controller to present the list of credentials. A service identifier array is passed which can be used to filter or prioritize the credentials that closely match each service. The service identifier array could have zero or more items. If there are more than one item in the array, items with lower indexes represent more specific identifiers for which a credential is being requested. For example, the array could contain identifiers [m.example.com, example.com] with the first item representing the more specifc service that requires a credential. If the array of service identifiers is empty, it is expected that the credential list should still show credentials that the user can pick from.

func (*ASCredentialProviderViewController) PrepareCredentialListForServiceIdentifiersRequestParameters

func (o *ASCredentialProviderViewController) PrepareCredentialListForServiceIdentifiersRequestParameters(serviceIdentifiers *foundation.NSArray[*ASCredentialServiceIdentifier], requestParameters *ASPasskeyCredentialRequestParameters)

@abstract Prepare the view controller to show a list of passkey and password credentials. @param serviceIdentifiers the array of service identifiers. @param requestParameters the parameters of the active passkey request. @discussion This method is called by the system to prepare the extension's view controller to present the list of credentials. A service identifier array is passed which can be used to filter or prioritize the credentials that closely match each service. The service identifier array could have zero or more items. If there is more than one item in the array, items with lower indexes represent more specific identifiers for which a credential is being requested. For example, the array could contain identifiers [m.example.com, example.com] with the first item representing the more specifc service that requires a credential. If the array of service identifiers is empty, it is expected that the credential list should still show credentials that the user can pick from. If a passkey credential is selected, the extension should use the requestParameters object to complete the request using the selected passkey credential.

func (*ASCredentialProviderViewController) PrepareInterfaceForExtensionConfiguration

func (o *ASCredentialProviderViewController) PrepareInterfaceForExtensionConfiguration()

@abstract Prepare the view controller to show user interface when the user enables your extension. @discussion The system calls this method after your extension is enabled by the user in Settings. You can use this method to give the user a chance to configure the extension or to provide credential identities to the system. After the configuration is done, call -[ASCredentialProviderExtensionContext completeExtensionConfigurationRequest]. @note This method only gets called if your extension supports this functionality by specifying "ASCredentialProviderExtensionShowsConfigurationUI": YES in its extension attributes.

func (*ASCredentialProviderViewController) PrepareInterfaceForPasskeyRegistration

func (o *ASCredentialProviderViewController) PrepareInterfaceForPasskeyRegistration(registrationRequest ASCredentialRequest)

Prepare UI to register a passkey for the specified relying party. The system calls this method when the user selects your extension to use for creating a passkey. In order for your extension to be presented in the list of options for passkey registration requests, your extension needs to specify a true value for the Information Property List key `ProvidesPasskeys` under the `ASCredentialProviderExtensionCapabilities` dictionary. Info.plist ├─ NSExtension ├─ NSExtensionAttributes ├─ ASCredentialProviderExtensionCapabilities ├─ ProvidesPasskeys => true This method will present your extension's UI for user authentication before creating the passkey. Once the passkey is created, your extension should call `-[ASCredentialProviderExtensionContext completeRegistrationRequestWithSelectedPasskeyCredential:completionHandler:]` with the newly created ASPasskeyCredential object. If an error occurs, call `-[ASCredentialProviderExtensionContext cancelRequestWithError:]` and pass an error with domain `ASExtensionErrorDomain` and an appropriate error code from `ASExtensionErrorCode`. - Parameter registrationRequest: The passkey registration request parameters needed to register a new passkey.

func (*ASCredentialProviderViewController) PrepareInterfaceToProvideCredentialForIdentity

func (o *ASCredentialProviderViewController) PrepareInterfaceToProvideCredentialForIdentity(credentialIdentity *ASPasswordCredentialIdentity)

@abstract Prepare the view controller to show user interface for providing the user-requested credential. @param credentialIdentity the credential identity for which a credential should be provided. @discussion The system calls this method when your extension cannot provide the requested credential without user interaction. Set up the view controller for any user interaction required to provide the requested credential only. The user interaction should be limited in nature to operations required for providing the requested credential. An example is showing an authentication UI to unlock the user's passwords database. Call -[ASCredentialProviderExtensionContext completeRequestWithSelectedCredential:completionHandler:] to provide the credential. If an error occurs, call -[ASCredentialProviderExtensionContext cancelRequestWithError:] and pass an error with domain ASExtensionErrorDomain and an appropriate error code from ASExtensionErrorCode. For example, if the credential identity cannot be found in the database, pass an error with code ASExtensionErrorCodeCredentialIdentityNotFound. Deprecated: since macOS 14.0.

func (*ASCredentialProviderViewController) PrepareInterfaceToProvideCredentialForRequest

func (o *ASCredentialProviderViewController) PrepareInterfaceToProvideCredentialForRequest(credentialRequest ASCredentialRequest)

@abstract Prepare the view controller to show user interface for providing the user-requested credential. @param credentialRequest the credential request for which a credential should be provided. @discussion The system calls this method when your extension cannot provide the requested credential without user interaction. Set up the view controller for any user interaction required to provide the requested credential only. The user interaction should be limited in nature to operations required for providing the requested credential. An example is showing an authentication UI to unlock the user's passwords database. Call -[ASCredentialProviderExtensionContext completeRequestWithSelectedCredential:completionHandler:] for password credentials or -[ASCredentialProviderExtensionContext completeAssertionRequestWithSelectedPasskeyCredential:completionHandler:] for passkey credentials. If an error occurs, call -[ASCredentialProviderExtensionContext cancelRequestWithError:] and pass an error with domain ASExtensionErrorDomain and an appropriate error code from ASExtensionErrorCode. For example, if the credential identity cannot be found in the database, pass an error with code ASExtensionErrorCodeCredentialIdentityNotFound.

func (*ASCredentialProviderViewController) PrepareOneTimeCodeCredentialListForServiceIdentifiers

func (o *ASCredentialProviderViewController) PrepareOneTimeCodeCredentialListForServiceIdentifiers(serviceIdentifiers *foundation.NSArray[*ASCredentialServiceIdentifier])

@abstract Prepare the view controller to show a list of one time code credentials. @param serviceIdentifiers the array of service identifiers. @discussion This method is called by the system to prepare the extension's view controller to present the list of credentials. A service identifier array is passed which can be used to filter or prioritize the credentials that closely match each service. The service identifier array could have zero or more items. If there is more than one item in the array, items with lower indexes represent more specific identifiers for which a credential is being requested. For example, the array could contain identifiers [m.example.com, example.com] with the first item representing the more specifc service that requires a credential. If the array of service identifiers is empty, it is expected that the credential list should still show credentials that the user can pick from.

func (*ASCredentialProviderViewController) ProvideCredentialWithoutUserInteractionForIdentity

func (o *ASCredentialProviderViewController) ProvideCredentialWithoutUserInteractionForIdentity(credentialIdentity *ASPasswordCredentialIdentity)

@abstract Attempt to provide the user-requested credential without any user interaction. @param credentialIdentity the credential identity for which a credential should be provided. @discussion After the user selects a credential identity, the system may ask your extension to provide the credential without showing any user interface if possible to enhance the user experience. If your extension can accomplish this (for example, the user’s passwords database is still unlocked from a recent interaction), call -[ASCredentialProviderExtensionContext completeRequestWithSelectedCredential:completionHandler:] to provide the credential. If an error occurs, call -[ASCredentialProviderExtensionContext cancelRequestWithError:] and pass an error with domain ASExtensionErrorDomain and an appropriate error code from ASExtensionErrorCode. For example, if your extension requires user interaction because the passwords database needs to be unlocked, pass an error with code ASExtensionErrorCodeUserInteractionRequired. @note When this method is called, your extension's view controller is not present on the screen. Do not attempt or expect to show any user interface in this method. Deprecated: since macOS 14.0.

func (*ASCredentialProviderViewController) ProvideCredentialWithoutUserInteractionForRequest

func (o *ASCredentialProviderViewController) ProvideCredentialWithoutUserInteractionForRequest(credentialRequest ASCredentialRequest)

Attempt to provide the user-requested credential without any user interaction. After the user selects a credential identity, the system will create a credential request, the contents of which will depend on whether the credential to use is a password or passkey. The request type will match the type of credential that was requested. Refer to `ASPasswordCredentialRequest`, `ASPasskeyCredentialRequest`, and `ASOneTimeCodeCredentialRequest` for details. The system may ask your extension to provide the credential without showing any user interface if possible to enhance the user experience. If your extension can accomplish this (for example, the user’s passwords database is still unlocked from a recent interaction), call `-[ASCredentialProviderExtensionContext completeRequestWithSelectedCredential:completionHandler:]` for password credentials, `-[ASCredentialProviderExtensionContext completeAssertionRequestWithSelectedPasskeyCredential:completionHandler:]` for passkey credentials, or `-[ASCredentialProviderExtensionContext completeOneTimeCodeRequestWithSelectedCredential:completionHandler:]` for one time code credentials. If an error occurs, call `-[ASCredentialProviderExtensionContext cancelRequestWithError:]` and pass an error with domain `ASExtensionErrorDomain` and an appropriate error code from `ASExtensionErrorCode`. For example, if your extension requires user interaction because the passwords database needs to be unlocked, pass an error with code `ASExtensionErrorCodeUserInteractionRequired`. In order for your extension to be presented in the list of options for passkey assertion requests, your extension needs to specify a true value for the Information Property List key `ProvidesPasskeys` under the `ASCredentialProviderExtensionCapabilities` dictionary. Info.plist ├─ NSExtension ├─ NSExtensionAttributes ├─ ASCredentialProviderExtensionCapabilities ├─ ProvidesPasskeys => true Similarly, your extension needs to specify a true value for the Information Property List key `ProvidesOneTimeCodes` under the `ASCredentialProviderExtensionCapabilities` dictionary in order to be presented in the list of options for one time code requests. - Note: When this method is called, your extension's view controller is not present on the screen. Do not attempt or expect to show any user interface in this method. - Parameter credentialRequest: The credential request for which a credential should be provided.

func (*ASCredentialProviderViewController) ReportAllAcceptedPublicKeyCredentialsForRelyingPartyUserHandleAcceptedCredentialIDs

func (o *ASCredentialProviderViewController) ReportAllAcceptedPublicKeyCredentialsForRelyingPartyUserHandleAcceptedCredentialIDs(relyingParty *foundation.NSString, userHandle *foundation.NSData, acceptedCredentialIDs *foundation.NSArray[*foundation.NSData])

Receive report when relying party sends a snapshot of all the accepted credentials for an account. This method will be called for handling passkey updates when a relying party sends a list of accepted credentials using the `ASCredentialUpdater` API. You may hide or remove any credential not present in the accepted credentials list. This update should be handled in the background, so no blocking UI or error should ever be shown. - Parameter relyingParty: Relying party (website) that the credential is saved for. - Parameter userHandle: User identifier. - Parameter acceptedCredentialIDs: An array of identifiers that uniquely identifies the accepted credentials. To indicate support for this feature, add `SupportsCredentialUpdate` under the `ASCredentialProviderExtensionCapabilities` dictionary. Info.plist ├─ NSExtension ├─ NSExtensionAttributes ├─ ASCredentialProviderExtensionCapabilities ├─ SupportsCredentialUpdate => true

func (*ASCredentialProviderViewController) ReportPublicKeyCredentialUpdateForRelyingPartyUserHandleNewName

func (o *ASCredentialProviderViewController) ReportPublicKeyCredentialUpdateForRelyingPartyUserHandleNewName(relyingParty *foundation.NSString, userHandle *foundation.NSData, newName *foundation.NSString)

Receive report when a relying party indicates that a passkey's user name was updated. This method will be called for handling passkey updates when a relying party reports an update using the `ASCredentialUpdater` API. This update should be handled in the background, so no blocking UI or error should ever be shown. - Parameter relyingParty: Relying party (website) that the credential is saved for. - Parameter userHandle: User identifier. - Parameter newName: The new user name for the credential. To indicate support for this feature, add `SupportsCredentialUpdate` under the `ASCredentialProviderExtensionCapabilities` dictionary. Info.plist ├─ NSExtension ├─ NSExtensionAttributes ├─ ASCredentialProviderExtensionCapabilities ├─ SupportsCredentialUpdate => true

func (*ASCredentialProviderViewController) ReportUnknownPublicKeyCredentialForRelyingPartyCredentialID

func (o *ASCredentialProviderViewController) ReportUnknownPublicKeyCredentialForRelyingPartyCredentialID(relyingParty *foundation.NSString, credentialID *foundation.NSData)

Receive report when a relying party indicates an invalid passkey credential. This method will be called for handling passkey updates when a relying party reports the credential is no longer valid using the `ASCredentialUpdater` API. You may hide or remove this credential. This update should be handled in the background, so no blocking UI or error should ever be shown. - Parameter relyingParty: Relying party (website) that the credential is saved for. - Parameter credentialID: An identifier that uniquely identifies the passkey. To indicate support for this feature, add `SupportsCredentialUpdate` under the `ASCredentialProviderExtensionCapabilities` dictionary. Info.plist ├─ NSExtension ├─ NSExtensionAttributes ├─ ASCredentialProviderExtensionCapabilities ├─ SupportsCredentialUpdate => true

func (*ASCredentialProviderViewController) ReportUnusedPasswordCredentialForDomainUserName

func (o *ASCredentialProviderViewController) ReportUnusedPasswordCredentialForDomainUserName(domain *foundation.NSString, userName *foundation.NSString)

Receive report when relying party indicates a password credential is no longer needed for a given user name. This method will be called for handling password credential updates when a relying party indicates a password is no longer needed using the `ASCredentialUpdater` API. You may hide or remove the credential. This update should be handled in the background, so no blocking UI or error should ever be shown. - Parameter domain: The website domain that the credential is saved for. - Parameter userName: The account user name. To indicate support for this feature, add `SupportsCredentialUpdate` under the `ASCredentialProviderExtensionCapabilities` dictionary. Info.plist ├─ NSExtension ├─ NSExtensionAttributes ├─ ASCredentialProviderExtensionCapabilities ├─ SupportsCredentialUpdate => true

type ASCredentialRequest

type ASCredentialRequest interface {
	foundation.NSSecureCoding
	foundation.NSCopying
	Type() ASCredentialRequestType
	CredentialIdentity() ASCredentialIdentity
}

ASCredentialRequest wraps the ObjC protocol ASCredentialRequest.

type ASCredentialRequestType

type ASCredentialRequestType int64
const (
	ASCredentialRequestTypePassword            ASCredentialRequestType = 0
	ASCredentialRequestTypePasskeyAssertion    ASCredentialRequestType = 1
	ASCredentialRequestTypePasskeyRegistration ASCredentialRequestType = 2
	ASCredentialRequestTypeOneTimeCode         ASCredentialRequestType = 3
)

func (ASCredentialRequestType) String

func (e ASCredentialRequestType) String() string

type ASCredentialServiceIdentifier

type ASCredentialServiceIdentifier struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/ascredentialserviceidentifier

func ASCredentialServiceIdentifierFromID

func ASCredentialServiceIdentifierFromID(id objc.ID) *ASCredentialServiceIdentifier

func (*ASCredentialServiceIdentifier) DisplayName

A user visible name for the identifier. For `app` types it will contain the localized name of the app. For `URL` types it will contain the host name of the URL if it contains a valid host. For `URL` type identifiers that do not contain a valid host and for `domain` type identifiers, this will be equal to `identifier`. This property is meant only as a best effort suggestion for display purposes. It is not used by the system to identify the service or suggest a credential for AutoFill.

func (*ASCredentialServiceIdentifier) Identifier

@abstract Get the identifier. @result The service identifier.

func (*ASCredentialServiceIdentifier) InitWithIdentifierType

@abstract Initializes an ASCredentialServiceIdentifier object. @param identifier string value for the service identifier. @param type the type that the service identifier string represents.

func (*ASCredentialServiceIdentifier) InitWithIdentifierTypeDisplayName

func (o *ASCredentialServiceIdentifier) InitWithIdentifierTypeDisplayName(identifier *foundation.NSString, type_ ASCredentialServiceIdentifierType, displayName *foundation.NSString) *ASCredentialServiceIdentifier

Initializes an ASCredentialServiceIdentifier object. - Parameters: - identifier: The string value for the service identifier. - type: The type that the service identifier string represents. - displayName: A user visible name that describes the service.

func (*ASCredentialServiceIdentifier) Type

@abstract Get the service identifier type. @result The service identifier type.

type ASCredentialServiceIdentifierType

type ASCredentialServiceIdentifierType int64
const (
	ASCredentialServiceIdentifierTypeDomain ASCredentialServiceIdentifierType = 0
	ASCredentialServiceIdentifierTypeURL    ASCredentialServiceIdentifierType = 1
	// The service identifier represents an App ID. When a service identifier of this type is provided to your extension for saving a password, the ASCredentialServiceIdentifier object will have a non-nil `displayName` property that contains a user friendly name for the app.
	ASCredentialServiceIdentifierTypeApp ASCredentialServiceIdentifierType = 2
)

func (ASCredentialServiceIdentifierType) String

type ASExtensionErrorCode

type ASExtensionErrorCode int64
const (
	ASExtensionErrorCodeFailed                     ASExtensionErrorCode = 0
	ASExtensionErrorCodeUserCanceled               ASExtensionErrorCode = 1
	ASExtensionErrorCodeUserInteractionRequired    ASExtensionErrorCode = 100
	ASExtensionErrorCodeCredentialIdentityNotFound ASExtensionErrorCode = 101
	// This error should only be used for a passkey registration request, if the @c excludedCredentials property matches a known passkey.
	ASExtensionErrorCodeMatchedExcludedCredential ASExtensionErrorCode = 102
)

func (ASExtensionErrorCode) String

func (e ASExtensionErrorCode) String() string

type ASOneTimeCodeCredential

type ASOneTimeCodeCredential struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asonetimecodecredential

func ASOneTimeCodeCredentialCredentialWithCode

func ASOneTimeCodeCredentialCredentialWithCode(code *foundation.NSString) *ASOneTimeCodeCredential

@abstract Creates and initializes a new ASOneTimeCodeCredential object. @param code the one time code.

func ASOneTimeCodeCredentialFromID

func ASOneTimeCodeCredentialFromID(id objc.ID) *ASOneTimeCodeCredential

func (*ASOneTimeCodeCredential) Code

func (*ASOneTimeCodeCredential) InitWithCode

@abstract Initializes an ASOneTimeCodeCredential object. @param code the one time code.

type ASOneTimeCodeCredentialIdentity

type ASOneTimeCodeCredentialIdentity struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asonetimecodecredentialidentity

func ASOneTimeCodeCredentialIdentityFromID

func ASOneTimeCodeCredentialIdentityFromID(id objc.ID) *ASOneTimeCodeCredentialIdentity

func (*ASOneTimeCodeCredentialIdentity) InitWithServiceIdentifierLabelRecordIdentifier

func (o *ASOneTimeCodeCredentialIdentity) InitWithServiceIdentifierLabelRecordIdentifier(serviceIdentifier *ASCredentialServiceIdentifier, label *foundation.NSString, recordIdentifier *foundation.NSString) *ASOneTimeCodeCredentialIdentity

@abstract Initializes an instance of ASOneTimeCodeCredentialIdentity. @param serviceIdentifier The service identifier for which this credential identity is valid. @param label A user-provided label to identify the one time code. @param recordIdentifier An optional string to uniquely identify this record in your local database.

func (*ASOneTimeCodeCredentialIdentity) Label

type ASOneTimeCodeCredentialRequest

type ASOneTimeCodeCredentialRequest struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/asonetimecodecredentialrequest

func ASOneTimeCodeCredentialRequestFromID

func ASOneTimeCodeCredentialRequestFromID(id objc.ID) *ASOneTimeCodeCredentialRequest

func (*ASOneTimeCodeCredentialRequest) InitWithCredentialIdentity

func (o *ASOneTimeCodeCredentialRequest) InitWithCredentialIdentity(credentialIdentity *ASOneTimeCodeCredentialIdentity) *ASOneTimeCodeCredentialRequest

@abstract Initializes an instance of ASOneTimeCodeCredentialRequest. @param credentialIdentity the credential identity to use for this request.

type ASPasskeyAssertionCredential

type ASPasskeyAssertionCredential struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aspasskeyassertioncredential

func ASPasskeyAssertionCredentialCredentialWithUserHandleRelyingPartySignatureClientDataHashAuthenticatorDataCredentialID

func ASPasskeyAssertionCredentialCredentialWithUserHandleRelyingPartySignatureClientDataHashAuthenticatorDataCredentialID(userHandle *foundation.NSData, relyingParty *foundation.NSString, signature *foundation.NSData, clientDataHash *foundation.NSData, authenticatorData *foundation.NSData, credentialID *foundation.NSData) *ASPasskeyAssertionCredential

@abstract Creates and initializes a new ASPasskeyCredential object. @param userHandle The identifier for the account the passkey is associated with. @param relyingParty the relying party. @param signature the signature for the assertion challenge.

func ASPasskeyAssertionCredentialFromID

func ASPasskeyAssertionCredentialFromID(id objc.ID) *ASPasskeyAssertionCredential

func (*ASPasskeyAssertionCredential) AuthenticatorData

func (o *ASPasskeyAssertionCredential) AuthenticatorData() *foundation.NSData

@abstract The authenticator data of the application that created this credential.

func (*ASPasskeyAssertionCredential) ClientDataHash

func (o *ASPasskeyAssertionCredential) ClientDataHash() *foundation.NSData

@abstract The hash of the client data for this assertion result.

func (*ASPasskeyAssertionCredential) CredentialID

func (o *ASPasskeyAssertionCredential) CredentialID() *foundation.NSData

@abstract The raw credential ID for this passkey credential.

func (*ASPasskeyAssertionCredential) ExtensionOutput

@abstract The outputs of WebAuthn extensions processed by the credential provider.

func (*ASPasskeyAssertionCredential) InitWithUserHandleRelyingPartySignatureClientDataHashAuthenticatorDataCredentialID

func (o *ASPasskeyAssertionCredential) InitWithUserHandleRelyingPartySignatureClientDataHashAuthenticatorDataCredentialID(userHandle *foundation.NSData, relyingParty *foundation.NSString, signature *foundation.NSData, clientDataHash *foundation.NSData, authenticatorData *foundation.NSData, credentialID *foundation.NSData) *ASPasskeyAssertionCredential

@abstract Initializes an ASPasskeyCredential object. @param userHandle The identifier for the account the passkey is associated with. @param relyingParty the relying party. @param signature the signature for the assertion challenge.

func (*ASPasskeyAssertionCredential) InitWithUserHandleRelyingPartySignatureClientDataHashAuthenticatorDataCredentialIDExtensionOutput

func (o *ASPasskeyAssertionCredential) InitWithUserHandleRelyingPartySignatureClientDataHashAuthenticatorDataCredentialIDExtensionOutput(userHandle *foundation.NSData, relyingParty *foundation.NSString, signature *foundation.NSData, clientDataHash *foundation.NSData, authenticatorData *foundation.NSData, credentialID *foundation.NSData, extensionOutput *ASPasskeyAssertionCredentialExtensionOutput) *ASPasskeyAssertionCredential

@abstract Initializes an ASPasskeyCredential object. @param userHandle The identifier for the account the passkey is associated with. @param relyingParty The relying party. @param signature The signature for the assertion challenge. @param extensionOutput The outputs of WebAuthn extensions processed by the credential provider.

func (*ASPasskeyAssertionCredential) RelyingParty

@abstract The relying party of this credential.

func (*ASPasskeyAssertionCredential) SetExtensionOutput

func (o *ASPasskeyAssertionCredential) SetExtensionOutput(extensionOutput *ASPasskeyAssertionCredentialExtensionOutput)

func (*ASPasskeyAssertionCredential) Signature

@abstract The signature of this credential.

func (*ASPasskeyAssertionCredential) UserHandle

@abstract The user handle of this passkey.

type ASPasskeyCredentialIdentity

type ASPasskeyCredentialIdentity struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aspasskeycredentialidentity

func ASPasskeyCredentialIdentityFromID

func ASPasskeyCredentialIdentityFromID(id objc.ID) *ASPasskeyCredentialIdentity

func ASPasskeyCredentialIdentityIdentityWithRelyingPartyIdentifierUserNameCredentialIDUserHandleRecordIdentifier

func ASPasskeyCredentialIdentityIdentityWithRelyingPartyIdentifierUserNameCredentialIDUserHandleRecordIdentifier(relyingPartyIdentifier *foundation.NSString, userName *foundation.NSString, credentialID *foundation.NSData, userHandle *foundation.NSData, recordIdentifier *foundation.NSString) *ASPasskeyCredentialIdentity

@abstract Create and initialize an instance of ASPasskeyCredentialIdentity. @param relyingPartyIdentifier relying party for this credential. @param userName user name associated with this credential. @param credentialID credential ID of this passkey credential. @param userHandle user handle data of this passkey credential. @param recordIdentifier identifier used by credential provider extension to identify this credential.

func (*ASPasskeyCredentialIdentity) CredentialID

func (o *ASPasskeyCredentialIdentity) CredentialID() *foundation.NSData

@abstract The credential ID of this passkey credential. @discussion This field is used to identify the correct credential to use based on relying party request parameters.

func (*ASPasskeyCredentialIdentity) InitWithRelyingPartyIdentifierUserNameCredentialIDUserHandleRecordIdentifier

func (o *ASPasskeyCredentialIdentity) InitWithRelyingPartyIdentifierUserNameCredentialIDUserHandleRecordIdentifier(relyingPartyIdentifier *foundation.NSString, userName *foundation.NSString, credentialID *foundation.NSData, userHandle *foundation.NSData, recordIdentifier *foundation.NSString) *ASPasskeyCredentialIdentity

@abstract Initialize an instance of ASPasskeyCredentialIdentity. @param relyingPartyIdentifier relying party for this credential. @param userName user name associated with this credential. @param credentialID credential ID of this passkey credential. @param userHandle user handle data of this passkey credential. @param recordIdentifier identifier used by credential provider extension to identify this credential.

func (*ASPasskeyCredentialIdentity) Rank

func (o *ASPasskeyCredentialIdentity) Rank() int

@abstract Get or set the rank of the credential identity object. @discussion The system may utilize the rank to decide which credential identity precedes the other if two identities have the same service identifier. A credential identity with a larger rank value precedes one with a smaller value if both credential identities have the same service identifier. The default value of this property is 0.

func (*ASPasskeyCredentialIdentity) RecordIdentifier

func (o *ASPasskeyCredentialIdentity) RecordIdentifier() *foundation.NSString

@abstract Get the record identifier. @result The record identifier. @discussion You can utilize the record identifier to uniquely identify the credential identity in your local database.

func (*ASPasskeyCredentialIdentity) RelyingPartyIdentifier

func (o *ASPasskeyCredentialIdentity) RelyingPartyIdentifier() *foundation.NSString

@abstract The relying party identifier of this passkey credential. @discussion This field is reported as the serviceIdentifier property of ASCredentialIdentity.

func (*ASPasskeyCredentialIdentity) SetRank

func (o *ASPasskeyCredentialIdentity) SetRank(rank int)

func (*ASPasskeyCredentialIdentity) UserHandle

@abstract The user handle of this passkey credential. @discussion This field is used to identify the correct credential to use based on relying party request parameters.

func (*ASPasskeyCredentialIdentity) UserName

@abstract The user name of this passkey credential. @discussion This field is reported as the user property of ASCredentialIdentity.

type ASPasskeyCredentialRequest

type ASPasskeyCredentialRequest struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aspasskeycredentialrequest

func ASPasskeyCredentialRequestFromID

func ASPasskeyCredentialRequestFromID(id objc.ID) *ASPasskeyCredentialRequest

func ASPasskeyCredentialRequestRequestWithCredentialIdentityClientDataHashUserVerificationPreferenceSupportedAlgorithms

func ASPasskeyCredentialRequestRequestWithCredentialIdentityClientDataHashUserVerificationPreferenceSupportedAlgorithms(credentialIdentity *ASPasskeyCredentialIdentity, clientDataHash *foundation.NSData, userVerificationPreference *foundation.NSString, supportedAlgorithms *foundation.NSArray[*foundation.NSNumber]) *ASPasskeyCredentialRequest

@abstract Creates and initializes an instance of ASPasskeyCredentialRequest. @param credentialIdentity credential identity to used for this request. @param clientDataHash the client data to be signed for this assertion request. @param userVerificationPreference user verification preference setting of this assertion request.

func (*ASPasskeyCredentialRequest) AssertionExtensionInput

@abstract Inputs for WebAuthn extensions used for passkey assertion. Will be nil for registration requests.

func (*ASPasskeyCredentialRequest) ClientDataHash

func (o *ASPasskeyCredentialRequest) ClientDataHash() *foundation.NSData

@abstract Hash of client data for credential provider to sign as part of the assertion/registration operation.

func (*ASPasskeyCredentialRequest) InitWithCredentialIdentityClientDataHashUserVerificationPreferenceSupportedAlgorithms

func (o *ASPasskeyCredentialRequest) InitWithCredentialIdentityClientDataHashUserVerificationPreferenceSupportedAlgorithms(credentialIdentity *ASPasskeyCredentialIdentity, clientDataHash *foundation.NSData, userVerificationPreference *foundation.NSString, supportedAlgorithms *foundation.NSArray[*foundation.NSNumber]) *ASPasskeyCredentialRequest

@abstract Initializes an instance of ASPasskeyCredentialRequest. @param credentialIdentity credential identity to used for this request. @param clientDataHash the client data to be signed for this assertion request. @param userVerificationPreference user verification preference setting of this assertion request.

func (*ASPasskeyCredentialRequest) InitWithCredentialIdentityClientDataHashUserVerificationPreferenceSupportedAlgorithmsAssertionExtensionInput

func (o *ASPasskeyCredentialRequest) InitWithCredentialIdentityClientDataHashUserVerificationPreferenceSupportedAlgorithmsAssertionExtensionInput(credentialIdentity *ASPasskeyCredentialIdentity, clientDataHash *foundation.NSData, userVerificationPreference *foundation.NSString, supportedAlgorithms *foundation.NSArray[*foundation.NSNumber], assertionExtensionInput *ASPasskeyAssertionCredentialExtensionInput) *ASPasskeyCredentialRequest

Initializes an instance of ASPasskeyCredentialRequest. @param credentialIdentity credential identity to used for this request. @param clientDataHash the client data to be signed for this assertion request. @param userVerificationPreference user verification preference setting of this assertion request. @param supportedAlgorithms the set of support algorithms for the credential's key. @param assertionExtensionInput input for any requested passkey extensions.

func (*ASPasskeyCredentialRequest) InitWithCredentialIdentityClientDataHashUserVerificationPreferenceSupportedAlgorithmsRegistrationExtensionInput

func (o *ASPasskeyCredentialRequest) InitWithCredentialIdentityClientDataHashUserVerificationPreferenceSupportedAlgorithmsRegistrationExtensionInput(credentialIdentity *ASPasskeyCredentialIdentity, clientDataHash *foundation.NSData, userVerificationPreference *foundation.NSString, supportedAlgorithms *foundation.NSArray[*foundation.NSNumber], registrationExtensionInput *ASPasskeyRegistrationCredentialExtensionInput) *ASPasskeyCredentialRequest

Initializes an instance of ASPasskeyCredentialRequest. @param credentialIdentity credential identity to used for this request. @param clientDataHash the client data to be signed for this assertion request. @param userVerificationPreference user verification preference setting of this assertion request. @param supportedAlgorithms the set of support algorithms for the credential's key. @param registrationExtensionInput input for any requested passkey extensions.

func (*ASPasskeyCredentialRequest) RegistrationExtensionInput

@abstract Inputs for WebAuthn extensions used for passkey registration. Will be nil for assertion requests.

func (*ASPasskeyCredentialRequest) SetUserVerificationPreference

func (o *ASPasskeyCredentialRequest) SetUserVerificationPreference(userVerificationPreference *foundation.NSString)

func (*ASPasskeyCredentialRequest) SupportedAlgorithms

func (o *ASPasskeyCredentialRequest) SupportedAlgorithms() *foundation.NSArray[*foundation.NSNumber]

@abstract A list of signing algorithms supported by the relying party. Will be empty for assertion requests.

func (*ASPasskeyCredentialRequest) UserVerificationPreference

func (o *ASPasskeyCredentialRequest) UserVerificationPreference() *foundation.NSString

@abstract A preference for whether the authenticator should attempt to verify that it is being used by its owner, such as through a PIN or biometrics.

type ASPasskeyCredentialRequestParameters

type ASPasskeyCredentialRequestParameters struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aspasskeycredentialrequestparameters

func ASPasskeyCredentialRequestParametersFromID

func ASPasskeyCredentialRequestParametersFromID(id objc.ID) *ASPasskeyCredentialRequestParameters

func (*ASPasskeyCredentialRequestParameters) AllowedCredentials

A list of allowed credential IDs for this request. An empty list means all credentials are allowed.

func (*ASPasskeyCredentialRequestParameters) ClientDataHash

Hash of client data for credential provider to sign as part of the operation.

func (*ASPasskeyCredentialRequestParameters) ExtensionInput

Inputs for WebAuthn extensions used for passkey assertion.

func (*ASPasskeyCredentialRequestParameters) RelyingPartyIdentifier

func (o *ASPasskeyCredentialRequestParameters) RelyingPartyIdentifier() *foundation.NSString

The relying party identifier for this request.

func (*ASPasskeyCredentialRequestParameters) UserVerificationPreference

func (o *ASPasskeyCredentialRequestParameters) UserVerificationPreference() *foundation.NSString

A preference for whether the authenticator should attempt to verify that it is being used by its owner, such as through a PIN or biometrics.

type ASPasskeyRegistrationCredential

type ASPasskeyRegistrationCredential struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aspasskeyregistrationcredential

func ASPasskeyRegistrationCredentialCredentialWithRelyingPartyClientDataHashCredentialIDAttestationObject

func ASPasskeyRegistrationCredentialCredentialWithRelyingPartyClientDataHashCredentialIDAttestationObject(relyingParty *foundation.NSString, clientDataHash *foundation.NSData, credentialID *foundation.NSData, attestationObject *foundation.NSData) *ASPasskeyRegistrationCredential

@abstract Creates and initializes an ASPasskeyRegistrationCredential object. @param relyingParty The relying party identifier associated with this passkey. @param clientDataHash The JSON encoded client data for this registration result. @param credentialID The unique identifier for this passkey. @param attestationObject The attestation object for this passkey registration result.

func ASPasskeyRegistrationCredentialFromID

func ASPasskeyRegistrationCredentialFromID(id objc.ID) *ASPasskeyRegistrationCredential

func (*ASPasskeyRegistrationCredential) AttestationObject

func (o *ASPasskeyRegistrationCredential) AttestationObject() *foundation.NSData

@abstract The attestation object for this passkey registration result.

func (*ASPasskeyRegistrationCredential) ClientDataHash

func (o *ASPasskeyRegistrationCredential) ClientDataHash() *foundation.NSData

@abstract The hash of the client data for this registration result.

func (*ASPasskeyRegistrationCredential) CredentialID

@abstract The raw credential identifier of this passkey.

func (*ASPasskeyRegistrationCredential) ExtensionOutput

@abstract The outputs for WebAuthn extensions processed by the credential provider.

func (*ASPasskeyRegistrationCredential) InitWithRelyingPartyClientDataHashCredentialIDAttestationObject

func (o *ASPasskeyRegistrationCredential) InitWithRelyingPartyClientDataHashCredentialIDAttestationObject(relyingParty *foundation.NSString, clientDataHash *foundation.NSData, credentialID *foundation.NSData, attestationObject *foundation.NSData) *ASPasskeyRegistrationCredential

@abstract Initializes an ASPasskeyRegistrationCredential object. @param relyingParty The relying party identifier associated with this passkey. @param clientDataHash The JSON encoded client data for this registration result. @param credentialID The unique identifier for this passkey. @param attestationObject The attestation object for this passkey registration result.

func (*ASPasskeyRegistrationCredential) InitWithRelyingPartyClientDataHashCredentialIDAttestationObjectExtensionOutput

func (o *ASPasskeyRegistrationCredential) InitWithRelyingPartyClientDataHashCredentialIDAttestationObjectExtensionOutput(relyingParty *foundation.NSString, clientDataHash *foundation.NSData, credentialID *foundation.NSData, attestationObject *foundation.NSData, extensionOutput *ASPasskeyRegistrationCredentialExtensionOutput) *ASPasskeyRegistrationCredential

@abstract Initializes an ASPasskeyRegistrationCredential object. @param relyingParty The relying party identifier associated with this passkey. @param clientDataHash The JSON encoded client data for this registration result. @param credentialID The unique identifier for this passkey. @param attestationObject The attestation object for this passkey registration result. @param extensionOutput The output of WebAuthn extensions processed by the credential provider.

func (*ASPasskeyRegistrationCredential) RelyingParty

@abstract The relying party identifier associated with this passkey.

func (*ASPasskeyRegistrationCredential) SetExtensionOutput

type ASPasswordCredential

type ASPasswordCredential struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aspasswordcredential

func ASPasswordCredentialCredentialWithUserPassword

func ASPasswordCredentialCredentialWithUserPassword(user *foundation.NSString, password *foundation.NSString) *ASPasswordCredential

@abstract Creates and initializes a new ASPasswordCredential object. @param user the user. @param password the password.

func ASPasswordCredentialFromID

func ASPasswordCredentialFromID(id objc.ID) *ASPasswordCredential

func (*ASPasswordCredential) InitWithUserPassword

func (o *ASPasswordCredential) InitWithUserPassword(user *foundation.NSString, password *foundation.NSString) *ASPasswordCredential

@abstract Initializes an ASPasswordCredential object. @param user the user. @param password the password.

func (*ASPasswordCredential) Password

func (o *ASPasswordCredential) Password() *foundation.NSString

@abstract The password of this credential. @result The password string.

func (*ASPasswordCredential) User

@abstract The user name of this credential. @result The user string.

type ASPasswordCredentialIdentity

type ASPasswordCredentialIdentity struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aspasswordcredentialidentity

func ASPasswordCredentialIdentityFromID

func ASPasswordCredentialIdentityFromID(id objc.ID) *ASPasswordCredentialIdentity

func ASPasswordCredentialIdentityIdentityWithServiceIdentifierUserRecordIdentifier

func ASPasswordCredentialIdentityIdentityWithServiceIdentifierUserRecordIdentifier(serviceIdentifier *ASCredentialServiceIdentifier, user *foundation.NSString, recordIdentifier *foundation.NSString) *ASPasswordCredentialIdentity

@abstract Creates and initializes an instance of ASPasswordCredentialIdentity. @param serviceIdentifier the service identifier for which this credential identity is valid. @param user the user that can authenticate into the service indicated by the serviceIdentifier. @param recordIdentifier an optional string to uniquely identify this record in your local database.

func (*ASPasswordCredentialIdentity) InitWithServiceIdentifierUserRecordIdentifier

func (o *ASPasswordCredentialIdentity) InitWithServiceIdentifierUserRecordIdentifier(serviceIdentifier *ASCredentialServiceIdentifier, user *foundation.NSString, recordIdentifier *foundation.NSString) *ASPasswordCredentialIdentity

@abstract Initializes an instance of ASPasswordCredentialIdentity. @param serviceIdentifier the service identifier for which this credential identity is valid. @param user the user that can authenticate into the service indicated by the serviceIdentifier. @param recordIdentifier an optional string to uniquely identify this record in your local database.

func (*ASPasswordCredentialIdentity) Rank

@abstract Get or set the rank of the credential identity object. @discussion The system may utilize the rank to decide which credential identity precedes the other if two identities have the same service identifier. A credential identity with a larger rank value precedes one with a smaller value if both credential identities have the same service identifier. The default value of this property is 0.

func (*ASPasswordCredentialIdentity) RecordIdentifier

func (o *ASPasswordCredentialIdentity) RecordIdentifier() *foundation.NSString

@abstract Get the record identifier. @result The record identifier. @discussion You can utilize the record identifier to uniquely identify the credential identity in your local database.

func (*ASPasswordCredentialIdentity) ServiceIdentifier

@abstract Get the service identifier. @result The service identifier for this credential identity.

func (*ASPasswordCredentialIdentity) SetRank

func (o *ASPasswordCredentialIdentity) SetRank(rank int)

func (*ASPasswordCredentialIdentity) User

@abstract Get the user. @result The user string.

type ASPasswordCredentialRequest

type ASPasswordCredentialRequest struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aspasswordcredentialrequest

func ASPasswordCredentialRequestFromID

func ASPasswordCredentialRequestFromID(id objc.ID) *ASPasswordCredentialRequest

func ASPasswordCredentialRequestRequestWithCredentialIdentity

func ASPasswordCredentialRequestRequestWithCredentialIdentity(credentialIdentity *ASPasswordCredentialIdentity) *ASPasswordCredentialRequest

@abstract Creates and initializes an instance of ASPasswordCredentialRequest. @param credentialIdentity the credential identity to use for this request.

func (*ASPasswordCredentialRequest) InitWithCredentialIdentity

func (o *ASPasswordCredentialRequest) InitWithCredentialIdentity(credentialIdentity *ASPasswordCredentialIdentity) *ASPasswordCredentialRequest

@abstract Initializes an instance of ASPasswordCredentialRequest. @param credentialIdentity the credential identity to use for this request.

type ASPublicKeyCredential

type ASPublicKeyCredential interface {
	ASAuthorizationCredential
	RawClientDataJSON() *foundation.NSData
	CredentialID() *foundation.NSData
}

ASPublicKeyCredential wraps the ObjC protocol ASPublicKeyCredential.

type ASPublicKeyCredentialClientData

type ASPublicKeyCredentialClientData struct {
	foundation.NSObject
}

This object represents the client data for a public key credential request, as defined in the WebAuthentication standard.

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aspublickeycredentialclientdata

func ASPublicKeyCredentialClientDataFromID

func ASPublicKeyCredentialClientDataFromID(id objc.ID) *ASPublicKeyCredentialClientData

func (*ASPublicKeyCredentialClientData) Challenge

The challenge to be signed during the operation.

func (*ASPublicKeyCredentialClientData) CrossOrigin

Indicates whether this is a cross-origin request, if applicable.

func (*ASPublicKeyCredentialClientData) InitWithChallengeOrigin

func (*ASPublicKeyCredentialClientData) Origin

The origin for where the request was performed.

func (*ASPublicKeyCredentialClientData) SetChallenge

func (o *ASPublicKeyCredentialClientData) SetChallenge(challenge *foundation.NSData)

func (*ASPublicKeyCredentialClientData) SetCrossOrigin

func (*ASPublicKeyCredentialClientData) SetOrigin

func (o *ASPublicKeyCredentialClientData) SetOrigin(origin *foundation.NSString)

func (*ASPublicKeyCredentialClientData) SetTopOrigin

func (o *ASPublicKeyCredentialClientData) SetTopOrigin(topOrigin *foundation.NSString)

func (*ASPublicKeyCredentialClientData) TopOrigin

The top-level origin, if applicable.

type ASPublicKeyCredentialClientDataCrossOriginValue

type ASPublicKeyCredentialClientDataCrossOriginValue int64
const (
	ASPublicKeyCredentialClientDataCrossOriginValueNotSet                  ASPublicKeyCredentialClientDataCrossOriginValue = 0
	ASPublicKeyCredentialClientDataCrossOriginValueCrossOrigin             ASPublicKeyCredentialClientDataCrossOriginValue = 1
	ASPublicKeyCredentialClientDataCrossOriginValueSameOriginWithAncestors ASPublicKeyCredentialClientDataCrossOriginValue = 2
)

func (ASPublicKeyCredentialClientDataCrossOriginValue) String

type ASUserAgeRange

type ASUserAgeRange int64
const (
	ASUserAgeRangeUnknown  ASUserAgeRange = 0
	ASUserAgeRangeChild    ASUserAgeRange = 1
	ASUserAgeRangeNotChild ASUserAgeRange = 2
)

func (ASUserAgeRange) String

func (e ASUserAgeRange) String() string

type ASUserDetectionStatus

type ASUserDetectionStatus int64
const (
	ASUserDetectionStatusUnsupported ASUserDetectionStatus = 0
	ASUserDetectionStatusUnknown     ASUserDetectionStatus = 1
	ASUserDetectionStatusLikelyReal  ASUserDetectionStatus = 2
)

func (ASUserDetectionStatus) String

func (e ASUserDetectionStatus) String() string

type ASWebAuthenticationPresentationContextProviding

type ASWebAuthenticationPresentationContextProviding interface {
	PresentationAnchorForWebAuthenticationSession(session *ASWebAuthenticationSession) *appkit.NSWindow
}

ASWebAuthenticationPresentationContextProviding wraps the ObjC protocol ASWebAuthenticationPresentationContextProviding.

type ASWebAuthenticationSession

type ASWebAuthenticationSession struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession

func ASWebAuthenticationSessionFromID

func ASWebAuthenticationSessionFromID(id objc.ID) *ASWebAuthenticationSession

func (*ASWebAuthenticationSession) AdditionalHeaderFields

Any additional header fields to be set when loading the initial URL. All header field names must start with the "X-" prefix.

func (*ASWebAuthenticationSession) CanStart

func (o *ASWebAuthenticationSession) CanStart() bool

@abstract Returns whether the session can be successfully started. This property returns the same value as calling -start, but without the side effect of actually starting the session.

func (*ASWebAuthenticationSession) Cancel

func (o *ASWebAuthenticationSession) Cancel()

@abstract Cancel an ASWebAuthenticationSession. If the view controller is already presented to load the webpage for authentication, it will be dismissed. Calling cancel on an already canceled session will have no effect.

func (*ASWebAuthenticationSession) InitWithURLCallbackCompletionHandler

func (o *ASWebAuthenticationSession) InitWithURLCallbackCompletionHandler(uRL *foundation.NSURL, callback *ASWebAuthenticationSessionCallback, completionHandler func(*foundation.NSURL, unsafe.Pointer)) *ASWebAuthenticationSession

func (*ASWebAuthenticationSession) InitWithURLCallbackURLSchemeCompletionHandler

func (o *ASWebAuthenticationSession) InitWithURLCallbackURLSchemeCompletionHandler(uRL *foundation.NSURL, callbackURLScheme *foundation.NSString, completionHandler func(*foundation.NSURL, unsafe.Pointer)) *ASWebAuthenticationSession

@abstract Returns an ASWebAuthenticationSession object. @param URL the initial URL pointing to the authentication webpage. Only supports URLs with http:// or https:// schemes. @param callbackURLScheme the custom URL scheme that the app expects in the callback URL. @param completionHandler the completion handler which is called when the session is completed successfully or canceled by user. Deprecated: Use initWithURL:callback:completionHandler: instead

func (*ASWebAuthenticationSession) PrefersEphemeralWebBrowserSession

func (o *ASWebAuthenticationSession) PrefersEphemeralWebBrowserSession() bool

@abstract Indicates whether this session should ask the browser for an ephemeral session. @discussion Ephemeral web browser sessions do not not share cookies or other browsing data with a user's normal browser session. This value is NO by default. Setting this property after calling -[ASWebAuthenticationSession start] has no effect.

func (*ASWebAuthenticationSession) PresentationContextProvider

@abstract Provides context to target where in an application's UI the authorization view should be shown. A provider must be set prior to calling -start, otherwise the authorization view cannot be displayed. If deploying to iOS prior to 13.0, the desired window is inferred by the application's key window.

func (*ASWebAuthenticationSession) SetAdditionalHeaderFields

func (o *ASWebAuthenticationSession) SetAdditionalHeaderFields(additionalHeaderFields *foundation.NSDictionary[*foundation.NSString, *foundation.NSString])

func (*ASWebAuthenticationSession) SetPrefersEphemeralWebBrowserSession

func (o *ASWebAuthenticationSession) SetPrefersEphemeralWebBrowserSession(prefersEphemeralWebBrowserSession bool)

func (*ASWebAuthenticationSession) SetPresentationContextProvider

func (o *ASWebAuthenticationSession) SetPresentationContextProvider(presentationContextProvider ASWebAuthenticationPresentationContextProviding)

func (*ASWebAuthenticationSession) Start

func (o *ASWebAuthenticationSession) Start() bool

@abstract Starts the ASWebAuthenticationSession instance after it is instantiated. @discussion start can only be called once for an ASWebAuthenticationSession instance. This also means calling start on a canceled session will fail. @result Returns YES if the session starts successfully.

type ASWebAuthenticationSessionCallback

type ASWebAuthenticationSessionCallback struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsessioncallback

func ASWebAuthenticationSessionCallbackCallbackWithCustomScheme

func ASWebAuthenticationSessionCallbackCallbackWithCustomScheme(customScheme *foundation.NSString) *ASWebAuthenticationSessionCallback

Creates a callback object that matches against URLs with the given custom scheme. @param customScheme The custom scheme that the app expects in the callback URL.

func ASWebAuthenticationSessionCallbackCallbackWithHTTPSHostPath

func ASWebAuthenticationSessionCallbackCallbackWithHTTPSHostPath(host *foundation.NSString, path *foundation.NSString) *ASWebAuthenticationSessionCallback

Creates a callback object that matches against HTTPS URLs with the given host and path. @param host The host that the app expects in the callback URL. The host must be associated with the app using associated web credentials domains. @param path The path that the app expects in the callback URL.

func ASWebAuthenticationSessionCallbackFromID

func ASWebAuthenticationSessionCallbackFromID(id objc.ID) *ASWebAuthenticationSessionCallback

func (*ASWebAuthenticationSessionCallback) MatchesURL

Check whether a given main-frame navigation URL matches the callback expected by the client app. Handles all URL-based callback strategies, including custom schemes and HTTPS navigations. This is mainly meant for web browsers adopting the ASWebAuthenticationWebBrowser API, but may also be useful for other apps for debugging purposes. @param url The URL to check.

type ASWebAuthenticationSessionErrorCode

type ASWebAuthenticationSessionErrorCode int64
const (
	ASWebAuthenticationSessionErrorCodeCanceledLogin                  ASWebAuthenticationSessionErrorCode = 1
	ASWebAuthenticationSessionErrorCodePresentationContextNotProvided ASWebAuthenticationSessionErrorCode = 2
	ASWebAuthenticationSessionErrorCodePresentationContextInvalid     ASWebAuthenticationSessionErrorCode = 3
)

func (ASWebAuthenticationSessionErrorCode) String

type ASWebAuthenticationSessionRequest

type ASWebAuthenticationSessionRequest struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsessionrequest

func ASWebAuthenticationSessionRequestFromID

func ASWebAuthenticationSessionRequestFromID(id objc.ID) *ASWebAuthenticationSessionRequest

func (*ASWebAuthenticationSessionRequest) AdditionalHeaderFields

Additional headers to be sent when loading the initial URL. These should _only_ apply to the initial page, and should not overwrite any headers normally sent by the browser. Add `AdditionalHeaderFieldsAreSupported: true` to `ASWebAuthenticationSessionWebBrowserSupportCapabilities` in your browser's Info.plist file to indicate support for this.

func (*ASWebAuthenticationSessionRequest) Callback

The callback to listen for to complete this request. Check all main-frame navigations loaded during the request with this callback. It is used to handle all callback types, including custom schemes and HTTPS navigations. When a match is found, invoke `-completeWithCallbackURL:` with that URL. Add `CallbackURLMatchingIsSupported: true` to `ASWebAuthenticationSessionWebBrowserSupportCapabilities` in your browser's Info.plist file to indicate support for this.

func (*ASWebAuthenticationSessionRequest) CallbackURLScheme deprecated

func (o *ASWebAuthenticationSessionRequest) CallbackURLScheme() *foundation.NSString

Deprecated: Use `callback` to match all callback types.

func (*ASWebAuthenticationSessionRequest) CancelWithError

func (o *ASWebAuthenticationSessionRequest) CancelWithError(error_ unsafe.Pointer)

func (*ASWebAuthenticationSessionRequest) CompleteWithCallbackURL

func (o *ASWebAuthenticationSessionRequest) CompleteWithCallbackURL(url *foundation.NSURL)

func (*ASWebAuthenticationSessionRequest) Delegate deprecated

Deprecated: Use `callback` to match all callback types.

func (*ASWebAuthenticationSessionRequest) SetDelegate

func (*ASWebAuthenticationSessionRequest) ShouldUseEphemeralSession deprecated

func (o *ASWebAuthenticationSessionRequest) ShouldUseEphemeralSession() bool

Deprecated: Use `callback` to match all callback types.

func (*ASWebAuthenticationSessionRequest) URL

func (*ASWebAuthenticationSessionRequest) UUID

type ASWebAuthenticationSessionRequestDelegate

type ASWebAuthenticationSessionRequestDelegate interface {
}

ASWebAuthenticationSessionRequestDelegate wraps the ObjC protocol ASWebAuthenticationSessionRequestDelegate.

type ASWebAuthenticationSessionWebBrowserSessionHandling

type ASWebAuthenticationSessionWebBrowserSessionHandling interface {
	BeginHandlingWebAuthenticationSessionRequest(request *ASWebAuthenticationSessionRequest)
	CancelWebAuthenticationSessionRequest(request *ASWebAuthenticationSessionRequest)
}

ASWebAuthenticationSessionWebBrowserSessionHandling wraps the ObjC protocol ASWebAuthenticationSessionWebBrowserSessionHandling.

type ASWebAuthenticationSessionWebBrowserSessionManager

type ASWebAuthenticationSessionWebBrowserSessionManager struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsessionwebbrowsersessionmanager

func ASWebAuthenticationSessionWebBrowserSessionManagerFromID

func ASWebAuthenticationSessionWebBrowserSessionManagerFromID(id objc.ID) *ASWebAuthenticationSessionWebBrowserSessionManager

func ASWebAuthenticationSessionWebBrowserSessionManagerSharedManager

func ASWebAuthenticationSessionWebBrowserSessionManagerSharedManager() *ASWebAuthenticationSessionWebBrowserSessionManager

func (*ASWebAuthenticationSessionWebBrowserSessionManager) SessionHandler

func (*ASWebAuthenticationSessionWebBrowserSessionManager) SetSessionHandler

func (*ASWebAuthenticationSessionWebBrowserSessionManager) WasLaunchedByAuthenticationServices

func (o *ASWebAuthenticationSessionWebBrowserSessionManager) WasLaunchedByAuthenticationServices() bool

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int64
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type EvCmd

type EvCmd int64
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type NXMouseButton

type NXMouseButton int64
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type Os_unfair_lock_flags_t

type Os_unfair_lock_flags_t int64
const (
	OS_UNFAIR_LOCK_FLAG_NONE          Os_unfair_lock_flags_t = 0
	OS_UNFAIR_LOCK_FLAG_ADAPTIVE_SPIN Os_unfair_lock_flags_t = 262144
)

func (Os_unfair_lock_flags_t) String

func (e Os_unfair_lock_flags_t) String() string

type PMPageToPaperMappingType

type PMPageToPaperMappingType int64
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL