APIdia Launch Partner
Top Fields Constructors Methods
sun.security.ec

public final Class XDHPublicKeyImpl

extends X509Key
implements XECPublicKey
Class Inheritance
All Implemented Interfaces
java.security.interfaces.XECPublicKey, java.security.PublicKey, java.security.AsymmetricKey, java.security.BinaryEncodable, java.security.Key, java.io.Serializable, java.security.interfaces.XECKey
Imports
java.io.IOException, .InvalidObjectException, .ObjectInputStream, java.math.BigInteger, java.security.InvalidKeyException, .KeyRep, java.security.interfaces.XECPublicKey, java.security.spec.AlgorithmParameterSpec, .NamedParameterSpec, java.util.Arrays, sun.security.util.BitArray, sun.security.x509.AlgorithmId, .X509Key

Field Summary

Modifier and TypeField and Description
private final NamedParameterSpec
private static final long
private final BigInteger
u

Inherited from sun.security.x509.X509Key:
algidencodedKey

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
XDHPublicKeyImpl(byte[] encoded)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public String
getAlgorithm()

Overrides sun.security.x509.X509Key.getAlgorithm.

Implements java.security.Key.getAlgorithm.

Returns the standard algorithm name for this key.

public AlgorithmParameterSpec
getParams()

Overrides default java.security.interfaces.XECPublicKey.getParams, java.security.AsymmetricKey.getParams.

Returns the parameters associated with this key.

public BigInteger
getU()

Implements java.security.interfaces.XECPublicKey.getU.

Get the u coordinate of the point.

private void
readObject(ObjectInputStream
the ObjectInputStream from which data is read
stream
)

Hides sun.security.x509.X509Key.readObject.

Restores the state of this object from the stream.

private static void
reverse(byte[] arr)

private static void
swap(byte[] arr, int i, int j)

private Object
Inherited from sun.security.x509.X509Key:
decodedecodeencodeencodeequalsgetAlgorithmIdgetEncodedgetFormatgetKeygetKeyAsByteshashCodeparseparseKeyBitssetKeytoString

Field Detail

paramSpecback to summary
private final NamedParameterSpec paramSpec
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides sun.security.x509.X509Key.serialVersionUID, java.security.PublicKey.serialVersionUID.

Annotations
@Serial
uback to summary
private final BigInteger u

Constructor Detail

XDHPublicKeyImplback to summary
pack-priv XDHPublicKeyImpl(XECParameters params, BigInteger u) throws InvalidKeyException
XDHPublicKeyImplback to summary
pack-priv XDHPublicKeyImpl(byte[] encoded) throws InvalidKeyException

Method Detail

checkLengthback to summary
pack-priv void checkLength(XECParameters params) throws InvalidKeyException
getAlgorithmback to summary
public String getAlgorithm()

Overrides sun.security.x509.X509Key.getAlgorithm.

Implements java.security.Key.getAlgorithm.

Doc from java.security.Key.getAlgorithm.

Returns the standard algorithm name for this key. For example, "RSA" would indicate that this key is an RSA key. See the Key Algorithms section in the Java Security Standard Algorithm Names Specification for information about standard key algorithm names.

Annotations
@Override
getParamsback to summary
public AlgorithmParameterSpec getParams()

Overrides default java.security.interfaces.XECPublicKey.getParams, java.security.AsymmetricKey.getParams.

Doc from java.security.interfaces.XECPublicKey.getParams.

Returns the parameters associated with this key. The parameters are optional and may be either explicitly specified or implicitly created during key pair generation.

Annotations
@Override
getUback to summary
public BigInteger getU()

Implements java.security.interfaces.XECPublicKey.getU.

Doc from java.security.interfaces.XECPublicKey.getU.

Get the u coordinate of the point.

Annotations
@Override
readObjectback to summary
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException

Hides sun.security.x509.X509Key.readObject.

Restores the state of this object from the stream.

Deserialization of this object is not supported.

Parameters
stream:ObjectInputStream

the ObjectInputStream from which data is read

Annotations
@Serial
Exceptions
IOException:
if an I/O error occurs
ClassNotFoundException:
if a serialized class cannot be loaded
reverseback to summary
private static void reverse(byte[] arr)
swapback to summary
private static void swap(byte[] arr, int i, int j)
writeReplaceback to summary
private Object writeReplace() throws ObjectStreamException
Annotations
@Serial