IT. Expert System.

Android Reference

KeyPairGenerator


java.security

Class KeyPairGenerator

    • Constructor Detail

      • KeyPairGenerator

        protected KeyPairGenerator(String algorithm)
        Constructs a new instance of KeyPairGenerator with the name of the algorithm to use.
        Parameters:
        algorithm - the name of algorithm to use
    • Method Detail

      • getAlgorithm

        public String getAlgorithm()
        Returns the name of the algorithm of this KeyPairGenerator.
        Returns:
        the name of the algorithm of this KeyPairGenerator
      • getProvider

        public final Provider getProvider()
        Returns the provider associated with this KeyPairGenerator.
        Returns:
        the provider associated with this KeyPairGenerator
      • initialize

        public void initialize(int keysize)
        Initializes this KeyPairGenerator with the given key size. The default parameter set and a default SecureRandom instance will be used.
        Parameters:
        keysize - the size of the key (number of bits)
      • genKeyPair

        public final KeyPair genKeyPair()
        Computes and returns a new unique KeyPair each time this method is called.

        This does exactly the same as generateKeyPair().

        Returns:
        a new unique KeyPair each time this method is called
      • generateKeyPair

        public KeyPair generateKeyPair()
        Computes and returns a new unique KeyPair each time this method is called.

        This does exactly the same as genKeyPair().

        Specified by:
        generateKeyPair in class KeyPairGeneratorSpi
        Returns:
        a new unique KeyPair each time this method is called
      • initialize

        public void initialize(int keysize,
                      SecureRandom random)
        Initializes this KeyPairGenerator with the given key size and the given SecureRandom. The default parameter set will be used.
        Specified by:
        initialize in class KeyPairGeneratorSpi
        Parameters:
        keysize - the key size
        random - the source of randomness


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 250 / 158679261. Delta: 0.04129 с