IT. Expert System.

Android Reference

KeyRep


java.security

Class KeyRep

    • Constructor Detail

      • KeyRep

        public KeyRep(KeyRep.Type type,
              String algorithm,
              String format,
              byte[] encoded)
        Constructs a new instance of KeyRep with the specified arguments. The arguments should be obtained from the Key object that has to be serialized.
        Parameters:
        type - the type of the key.
        algorithm - the algorithm (obtained by Key.getAlgorithm()).
        format - the format of the key (obtained by Key.getFormat()).
        encoded - the encoded byte[] (obtained by Key.getEncoded()).
        Throws:
        NullPointerException - if type, algorithm, format or encoded is null .
    • Method Detail

      • readResolve

        protected Object readResolve()
                              throws ObjectStreamException
        Resolves and returns the Key object. Three KeyRep.Type|format combinations are supported:
        • Type.PRIVATE | "PKCS#8" : returns a PrivateKey instance, generated from a key factory (suitable for the algorithm) that is initialized with a PKCS8EncodedKeySpec using the encoded key bytes.
        • Type.SECRET | "RAW" : returns a SecretKeySpec instance, created with the encoded key bytes and the algorithm.
        • Type.PUBLIC | "X.509": returns a PublicKey instance, generated from a key factory (suitable for the algorithm) that is initialized with a X509EncodedKeySpec using the encoded key bytes.
        Returns:
        the resolved Key object.
        Throws:
        ObjectStreamException - if the Type|format combination is not recognized, or the resolution of any key parameter fails.


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: 158 / 158782908. Delta: 0.04142 с