Class ASCredentialProviderViewController

    • Constructor Detail

      • ASCredentialProviderViewController

        protected ASCredentialProviderViewController​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • attemptRotationToDeviceOrientation

        @Deprecated
        public static void attemptRotationToDeviceOrientation()
        Deprecated.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • initWithNibNameBundle

        public ASCredentialProviderViewController initWithNibNameBundle​(@Nullable
                                                                        @Nullable java.lang.String nibNameOrNil,
                                                                        @Nullable
                                                                        @Nullable NSBundle nibBundleOrNil)
        Description copied from class: UIViewController
        The designated initializer. If you subclass UIViewController, you must call the super implementation of this method, even if you aren't using a NIB. (As a convenience, the default init method will do this for you, and specify nil for both of this methods arguments.) In the specified NIB, the File's Owner proxy should have its class set to your view controller subclass, with the view outlet connected to the main view. If you invoke this method with a nil nib name, then this class' -loadView method will attempt to load a NIB whose name is the same as your view controller's class. If no such NIB in fact exists then you must either call -setView: before -view is invoked, or override the -loadView method to set up your views programatically.
        Overrides:
        initWithNibNameBundle in class UIViewController
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • prepareCredentialListForServiceIdentifiers

        public void prepareCredentialListForServiceIdentifiers​(@NotNull
                                                               @NotNull NSArray<? extends ASCredentialServiceIdentifier> serviceIdentifiers)
        Prepare the view controller to show a list of credentials. 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.
        Parameters:
        serviceIdentifiers - the array of service identifiers.
      • prepareInterfaceForExtensionConfiguration

        public void prepareInterfaceForExtensionConfiguration()
        Prepare the view controller to show user interface when the user enables your extension. 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.
      • prepareInterfaceToProvideCredentialForIdentity

        @Deprecated
        public void prepareInterfaceToProvideCredentialForIdentity​(@NotNull
                                                                   @NotNull ASPasswordCredentialIdentity credentialIdentity)
        Deprecated.
        Prepare the view controller to show user interface for providing the user-requested credential. 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. API-Since: 12.0 Deprecated-Since: 17.0
        Parameters:
        credentialIdentity - the credential identity for which a credential should be provided.
      • provideCredentialWithoutUserInteractionForIdentity

        @Deprecated
        public void provideCredentialWithoutUserInteractionForIdentity​(@NotNull
                                                                       @NotNull ASPasswordCredentialIdentity credentialIdentity)
        Deprecated.
        Attempt to provide the user-requested credential without any user interaction. 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. API-Since: 12.0 Deprecated-Since: 17.0
        Parameters:
        credentialIdentity - the credential identity for which a credential should be provided.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • prepareCredentialListForServiceIdentifiersRequestParameters

        public void prepareCredentialListForServiceIdentifiersRequestParameters​(@NotNull
                                                                                @NotNull NSArray<? extends ASCredentialServiceIdentifier> serviceIdentifiers,
                                                                                @NotNull
                                                                                @NotNull ASPasskeyCredentialRequestParameters requestParameters)
        Prepare the view controller to show a list of password and passkey credentials. 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. API-Since: 17.0
        Parameters:
        serviceIdentifiers - the array of service identifiers.
        requestParameters - the parameters of the active passkey request.
      • prepareInterfaceForPasskeyRegistration

        public void prepareInterfaceForPasskeyRegistration​(@NotNull
                                                           @NotNull ASCredentialRequest registrationRequest)
        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. API-Since: 17.0
      • prepareInterfaceToProvideCredentialForRequest

        public void prepareInterfaceToProvideCredentialForRequest​(@NotNull
                                                                  @NotNull ASCredentialRequest credentialRequest)
        Prepare the view controller to show user interface for providing the user-requested credential. 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. API-Since: 17.0
        Parameters:
        credentialRequest - the credential request for which a credential should be provided.
      • provideCredentialWithoutUserInteractionForRequest

        public void provideCredentialWithoutUserInteractionForRequest​(@NotNull
                                                                      @NotNull ASCredentialRequest credentialRequest)
        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` and `ASPasskeyCredentialRequest` 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 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 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 - 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. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.