Class LAPublicKey

  • All Implemented Interfaces:
    NSObject

    public class LAPublicKey
    extends NSObject
    The public part of an asymmetric key pair API-Since: 16.0
    • Constructor Detail

      • LAPublicKey

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static LAPublicKey allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

        public boolean canEncryptUsingSecKeyAlgorithm​(@NotNull
                                                      @NotNull CFStringRef algorithm)
        Checks if the the provided algorithm can be used for encryption with the key.
        Parameters:
        algorithm - Cryptographic algorithm
        Returns:
      • canVerifyUsingSecKeyAlgorithm

        public boolean canVerifyUsingSecKeyAlgorithm​(@NotNull
                                                     @NotNull CFStringRef algorithm)
        Checks if the the provided algorithm can be used for verifying signatures with the key.
        Parameters:
        algorithm - Cryptographic algorithm
        Returns:
      • 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()
      • debugDescription_static

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

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

        public void encryptDataSecKeyAlgorithmCompletion​(@NotNull
                                                         @NotNull NSData data,
                                                         @NotNull
                                                         @NotNull CFStringRef algorithm,
                                                         @NotNull
                                                         @NotNull LAPublicKey.Block_encryptDataSecKeyAlgorithmCompletion handler)
        Encrypts the given data
        Parameters:
        data - The data to encrypt.
        algorithm - A @c SecKeyAlgorithm suitable for encrypting with this key –e.g: @c kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM .
        handler - Completion handler with the ciphertext or an error on failure.
      • exportBytesWithCompletion

        public void exportBytesWithCompletion​(@NotNull
                                              @NotNull LAPublicKey.Block_exportBytesWithCompletion handler)
        Exports public key bytes.
        Parameters:
        handler - Completion handler with the raw bytes of the public key or an error on failure
      • hash_static

        public static long hash_static()
      • 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)
      • 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()
      • verifyDataSignatureSecKeyAlgorithmCompletion

        public void verifyDataSignatureSecKeyAlgorithmCompletion​(@NotNull
                                                                 @NotNull NSData signedData,
                                                                 @NotNull
                                                                 @NotNull NSData signature,
                                                                 @NotNull
                                                                 @NotNull CFStringRef algorithm,
                                                                 @NotNull
                                                                 @NotNull LAPublicKey.Block_verifyDataSignatureSecKeyAlgorithmCompletion handler)
        Verifies a digital signature for the given data.
        Parameters:
        signedData - The signed data.
        signature - The signature of the given data.
        algorithm - One of @c SecKeyAlgorithm suitable for verifying signatures with this key –e.g: @c kSecKeyAlgorithmECDSASignatureMessageX962SHA256
        handler - Completion hadnler with the signature of given data or an error on failure.
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.