Class LAPrivateKey

  • All Implemented Interfaces:
    NSObject

    public class LAPrivateKey
    extends NSObject
    Managed Private Key. API-Since: 16.0
    • Constructor Detail

      • LAPrivateKey

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

        public boolean canDecryptUsingSecKeyAlgorithm​(@NotNull
                                                      @NotNull CFStringRef algorithm)
        Checks if the the provided algorithm can be used for decryption
        Parameters:
        algorithm - Cryptographic algorithm
        Returns:
      • canExchangeKeysUsingSecKeyAlgorithm

        public boolean canExchangeKeysUsingSecKeyAlgorithm​(@NotNull
                                                           @NotNull CFStringRef algorithm)
        Checks if the the provided algorithm can be used for performing key exchanges
        Parameters:
        algorithm - Cryptographic algorithm
        Returns:
      • canSignUsingSecKeyAlgorithm

        public boolean canSignUsingSecKeyAlgorithm​(@NotNull
                                                   @NotNull CFStringRef algorithm)
        Checks if the the provided algorithm can be used for signing data
        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()
      • decryptDataSecKeyAlgorithmCompletion

        public void decryptDataSecKeyAlgorithmCompletion​(@NotNull
                                                         @NotNull NSData data,
                                                         @NotNull
                                                         @NotNull CFStringRef algorithm,
                                                         @NotNull
                                                         @NotNull LAPrivateKey.Block_decryptDataSecKeyAlgorithmCompletion handler)
        Decrypts the given ciphertext
        Parameters:
        data - The data to decrypt. The length and format of the data must conform to chosen algorithm, typically be less or equal to the value returned by SecKeyGetBlockSize().
        algorithm - A @c SecKeyAlgorithm suitable for decrypting data with this key –e.g: @c kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM
        handler - Completion handler with plaintext or an error on failure.
      • description_static

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

        public void exchangeKeysWithPublicKeySecKeyAlgorithmSecKeyParametersCompletion​(@NotNull
                                                                                       @NotNull NSData publicKey,
                                                                                       @NotNull
                                                                                       @NotNull CFStringRef algorithm,
                                                                                       @NotNull
                                                                                       @NotNull NSDictionary<?,​?> parameters,
                                                                                       @NotNull
                                                                                       @NotNull LAPrivateKey.Block_exchangeKeysWithPublicKeySecKeyAlgorithmSecKeyParametersCompletion handler)
        Performs a Diffie-Hellman style key exchange operation
        Parameters:
        publicKey - Remote party's public key.
        algorithm - A @c SecKeyAlgorithm suitable for performing a key exchange with this key –e.g: @c kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA256
        parameters - Dictionary with parameters, see @c SecKeyKeyExchangeParameter constants. Used algorithm determines the set of required and optional parameters to be used.
        handler - Completion handler with the result of the key exchange 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)
      • publicKey

        @NotNull
        public @NotNull LAPublicKey publicKey()
        Offers the public key counterpart of a @c LAPrivateKey instance
      • 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)
      • signDataSecKeyAlgorithmCompletion

        public void signDataSecKeyAlgorithmCompletion​(@NotNull
                                                      @NotNull NSData data,
                                                      @NotNull
                                                      @NotNull CFStringRef algorithm,
                                                      @NotNull
                                                      @NotNull LAPrivateKey.Block_signDataSecKeyAlgorithmCompletion handler)
        Generates a digital signature for the given data.
        Parameters:
        data - The data to be signed, typically the digest of the actual data.
        algorithm - A @c SecKeyAlgorithm suitable for generating signatures with this key – e.g: @c kSecKeyAlgorithmECDSASignatureMessageX962SHA256
        handler - Completion handler with the signature of given data or an error on failure.
      • superclass_static

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

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.