APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.security.ssl

pack-priv final Class DHServerKeyExchange

extends Object
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, java.nio.ByteBuffer, java.security.CryptoPrimitive, .GeneralSecurityException, .InvalidAlgorithmParameterException, .InvalidKeyException, .Key, .KeyFactory, .NoSuchAlgorithmException, .PrivateKey, .PublicKey, .Signature, .SignatureException, java.text.MessageFormat, java.util.EnumSet, .Locale, .Map, javax.crypto.interfaces.DHPublicKey, javax.crypto.spec.DHParameterSpec, .DHPublicKeySpec, sun.security.ssl.DHKeyExchange.DHECredentials, .DHKeyExchange.DHEPossession, .SSLHandshake.HandshakeMessage, .X509Authentication.X509Credentials, .X509Authentication.X509Possession, sun.security.util.HexDumpEncoder, .KeyUtil

Pack of the ServerKeyExchange handshake message.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
DHServerKeyExchange.DHServerKeyExchangeConsumer

The DiffieHellman "ServerKeyExchange" handshake message consumer.

private static class
DHServerKeyExchange.DHServerKeyExchangeMessage

The DiffieHellman ServerKeyExchange handshake message.

pack-priv static class
DHServerKeyExchange.DHServerKeyExchangeProducer

The DiffieHellman "ServerKeyExchange" handshake message producer.

Field Summary

Modifier and TypeField and Description
pack-priv static final SSLConsumer
pack-priv static final HandshakeProducer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dhHandshakeConsumerback to summary
pack-priv static final SSLConsumer dhHandshakeConsumer
dhHandshakeProducerback to summary
pack-priv static final HandshakeProducer dhHandshakeProducer

Constructor Detail

DHServerKeyExchangeback to summary
pack-priv DHServerKeyExchange()
sun.security.ssl back to summary

pack-priv final Class DHServerKeyExchange.DHServerKeyExchangeConsumer

extends Object
implements SSLConsumer
Class Inheritance
  • java.lang.Object
  • sun.security.ssl.DHServerKeyExchange.DHServerKeyExchangeConsumer
All Implemented Interfaces
sun.security.ssl.SSLConsumer

The DiffieHellman "ServerKeyExchange" handshake message consumer.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DHServerKeyExchangeConsumerback to summary
private DHServerKeyExchangeConsumer()

Method Detail

consumeback to summary
public void consume(ConnectionContext context, ByteBuffer message) throws IOException

Implements sun.security.ssl.SSLConsumer.consume.

Annotations
@Override
sun.security.ssl back to summary

private final Class DHServerKeyExchange.DHServerKeyExchangeMessage

extends HandshakeMessage
Class Inheritance

The DiffieHellman ServerKeyExchange handshake message.

Field Summary

Modifier and TypeField and Description
private final byte[]
g

private final byte[]
p

private final byte[]
private final SignatureScheme
private final boolean
private final byte[]
y

Inherited from sun.security.ssl.SSLHandshake.HandshakeMessage:
handshakeContext

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static Signature
getSignature(String keyAlgorithm, Key key)

public SSLHandshake
public int
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private void
updateSignature(Signature sig, byte[] clntNonce, byte[] svrNonce)

Inherited from sun.security.ssl.SSLHandshake.HandshakeMessage:
write

Field Detail

gback to summary
private final byte[] g
pback to summary
private final byte[] p
paramsSignatureback to summary
private final byte[] paramsSignature
signatureSchemeback to summary
private final SignatureScheme signatureScheme
useExplicitSigAlgorithmback to summary
private final boolean useExplicitSigAlgorithm
yback to summary
private final byte[] y

Constructor Detail

DHServerKeyExchangeMessageback to summary
pack-priv DHServerKeyExchangeMessage(HandshakeContext handshakeContext) throws IOException
DHServerKeyExchangeMessageback to summary
pack-priv DHServerKeyExchangeMessage(HandshakeContext handshakeContext, ByteBuffer m) throws IOException

Method Detail

getSignatureback to summary
private static Signature getSignature(String keyAlgorithm, Key key) throws NoSuchAlgorithmException, InvalidKeyException
handshakeTypeback to summary
public SSLHandshake handshakeType()

Implements abstract sun.security.ssl.SSLHandshake.HandshakeMessage.handshakeType.

Annotations
@Override
messageLengthback to summary
public int messageLength()

Implements abstract sun.security.ssl.SSLHandshake.HandshakeMessage.messageLength.

Annotations
@Override
sendback to summary
public void send(HandshakeOutStream hos) throws IOException

Implements abstract sun.security.ssl.SSLHandshake.HandshakeMessage.send.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
updateSignatureback to summary
private void updateSignature(Signature sig, byte[] clntNonce, byte[] svrNonce) throws SignatureException
sun.security.ssl back to summary

pack-priv final Class DHServerKeyExchange.DHServerKeyExchangeProducer

extends Object
implements HandshakeProducer
Class Inheritance
  • java.lang.Object
  • sun.security.ssl.DHServerKeyExchange.DHServerKeyExchangeProducer
All Implemented Interfaces
sun.security.ssl.HandshakeProducer

The DiffieHellman "ServerKeyExchange" handshake message producer.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public byte[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DHServerKeyExchangeProducerback to summary
private DHServerKeyExchangeProducer()

Method Detail

produceback to summary
public byte[] produce(ConnectionContext context, SSLHandshake.HandshakeMessage message) throws IOException

Implements sun.security.ssl.HandshakeProducer.produce.

Annotations
@Override