IT. Expert System.

Android Reference

AlgorithmParameters


java.security

Class AlgorithmParameters



  • public class AlgorithmParameters
    extends Object
    AlgorithmParameters is an engine class which provides algorithm parameters.
    • Constructor Detail

      • AlgorithmParameters

        protected AlgorithmParameters(AlgorithmParametersSpi algPramSpi,
                           Provider provider,
                           String algorithm)
        Constructs a new instance of AlgorithmParameters with the given arguments.
        Parameters:
        algPramSpi - the concrete implementation.
        provider - the security provider.
        algorithm - the name of the algorithm.
    • Method Detail

      • getProvider

        public final Provider getProvider()
        Returns the provider associated with this AlgorithmParameters.
        Returns:
        the provider associated with this AlgorithmParameters.
      • getAlgorithm

        public final String getAlgorithm()
        Returns the name of the algorithm.
        Returns:
        the name of the algorithm.
      • init

        public final void init(AlgorithmParameterSpec paramSpec)
                        throws InvalidParameterSpecException
        Initializes this AlgorithmParameters with the specified AlgorithmParameterSpec.
        Parameters:
        paramSpec - the parameter specification.
        Throws:
        InvalidParameterSpecException - if this AlgorithmParameters has already been initialized or the given paramSpec is not appropriate for initializing this AlgorithmParameters.
      • init

        public final void init(byte[] params)
                        throws IOException
        Initializes this AlgorithmParameters with the specified byte[] using the default decoding format for parameters. The default encoding format is ASN.1.
        Parameters:
        params - the encoded parameters.
        Throws:
        IOException - if this AlgorithmParameters has already been initialized, or the parameter could not be encoded.
      • init

        public final void init(byte[] params,
                String format)
                        throws IOException
        Initializes this AlgorithmParameters with the specified byte[] using the specified decoding format.
        Parameters:
        params - the encoded parameters.
        format - the name of the decoding format.
        Throws:
        IOException - if this AlgorithmParameters has already been initialized, or the parameter could not be encoded.
      • getParameterSpec

        public final <T extends AlgorithmParameterSpec> T getParameterSpec(Class<T> paramSpec)
                                                                throws InvalidParameterSpecException
        Returns the AlgorithmParameterSpec for this AlgorithmParameters.
        Parameters:
        paramSpec - the type of the parameter specification in which this parameters should be converted.
        Returns:
        the AlgorithmParameterSpec for this AlgorithmParameters.
        Throws:
        InvalidParameterSpecException - if this AlgorithmParameters has already been initialized, or if this parameters could not be converted to the specified class.
      • getEncoded

        public final byte[] getEncoded()
                                throws IOException
        Returns this AlgorithmParameters in their default encoding format. The default encoding format is ASN.1.
        Returns:
        the encoded parameters.
        Throws:
        IOException - if this AlgorithmParameters has already been initialized, or if this parameters could not be encoded.
      • getEncoded

        public final byte[] getEncoded(String format)
                                throws IOException
        Returns this AlgorithmParameters in the specified encoding format.
        Parameters:
        format - the name of the encoding format.
        Returns:
        the encoded parameters.
        Throws:
        IOException - if this AlgorithmParameters has already been initialized, or if this parameters could not be encoded.
      • toString

        public final String toString()
        Returns a string containing a concise, human-readable description of this AlgorithmParameters.
        Overrides:
        toString in class Object
        Returns:
        a printable representation for this AlgorithmParameters.


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: 1870 / . Delta: 0.02352 с