| Package | Description |
|---|---|
| org.eclipse.californium.scandium.config | |
| org.eclipse.californium.scandium.dtls | |
| org.eclipse.californium.scandium.dtls.cipher |
| Modifier and Type | Method and Description |
|---|---|
List<CipherSuite> |
DtlsConnectorConfig.getPreselectedCipherSuites()
Gets the preselected cipher suites.
|
List<CipherSuite> |
DtlsConnectorConfig.getSupportedCipherSuites()
Gets the supported cipher suites.
|
| Modifier and Type | Method and Description |
|---|---|
DtlsConnectorConfig.Builder |
DtlsConnectorConfig.Builder.setPreselectedCipherSuites(CipherSuite... cipherSuites)
Sets the preselected cipher suites for the connector.
|
DtlsConnectorConfig.Builder |
DtlsConnectorConfig.Builder.setSupportedCipherSuites(CipherSuite... cipherSuites)
Sets the cipher suites supported by the connector.
|
| Modifier and Type | Method and Description |
|---|---|
DtlsConnectorConfig.Builder |
DtlsConnectorConfig.Builder.setPreselectedCipherSuites(List<CipherSuite> cipherSuites)
Sets the preselected cipher suites for the connector.
|
DtlsConnectorConfig.Builder |
DtlsConnectorConfig.Builder.setSupportedCipherSuites(List<CipherSuite> cipherSuites)
Sets the cipher suites supported by the connector.
|
| Modifier and Type | Field and Description |
|---|---|
protected CipherSuite |
DTLSConnectionState.cipherSuite |
| Modifier and Type | Method and Description |
|---|---|
CipherSuite |
SessionTicket.getCipherSuite()
Gets the cipher suite.
|
CipherSuite |
ServerHello.getCipherSuite()
Gets the cipher suite the server has chosen for the session being negotiated.
|
CipherSuite |
DTLSSession.getCipherSuite()
Gets the cipher and MAC algorithm to be used for this session.
|
| Modifier and Type | Method and Description |
|---|---|
List<CipherSuite> |
ClientHello.getCipherSuites() |
| Modifier and Type | Method and Description |
|---|---|
static DTLSConnectionState |
DTLSConnectionState.create(CipherSuite cipherSuite,
CompressionMethod compressionMethod,
SecretKey encryptionKey,
SecretIvParameterSpec iv,
SecretKey macKey)
Create connection state and initializes all fields with given values.
|
| Constructor and Description |
|---|
ServerHello(ProtocolVersion version,
Random random,
SessionId sessionId,
CipherSuite cipherSuite,
CompressionMethod compressionMethod,
HelloExtensions extensions,
InetSocketAddress peerAddress)
Constructs a full ServerHello message.
|
| Constructor and Description |
|---|
ClientHello(ProtocolVersion version,
List<CipherSuite> supportedCipherSuites,
List<SignatureAndHashAlgorithm> supportedSignatureAndHashAlgorithms,
List<CertificateType> supportedClientCertificateTypes,
List<CertificateType> supportedServerCertificateTypes,
List<XECDHECryptography.SupportedGroup> supportedGroups,
InetSocketAddress peerAddress)
Creates a Client Hello message to be sent to a server.
|
| Modifier and Type | Method and Description |
|---|---|
CipherSuite |
CipherSuiteParameters.getSelectedCipherSuite()
Get selected cipher suite.
|
static CipherSuite |
CipherSuite.getTypeByCode(int code)
Gets a cipher suite by its numeric code.
|
static CipherSuite |
CipherSuite.getTypeByName(String name)
Gets a cipher suite by its (official) name.
|
static CipherSuite |
CipherSuite.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CipherSuite[] |
CipherSuite.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static List<CipherSuite> |
CipherSuite.getCertificateCipherSuites(boolean recommendedCipherSuitesOnly,
String keyAlgorithm)
Get a list of all supported cipher suites with the provided key
algorithm.
|
List<CipherSuite> |
CipherSuiteParameters.getCipherSuites() |
static List<CipherSuite> |
CipherSuite.getCipherSuitesByKeyExchangeAlgorithm(boolean recommendedCipherSuitesOnly,
boolean orderedByKeyExchangeAlgorithm,
List<CipherSuite.KeyExchangeAlgorithm> keyExchangeAlgorithms)
Get a list of all cipher suites using the provided key exchange
algorithms.
|
static List<CipherSuite> |
CipherSuite.getCipherSuitesByKeyExchangeAlgorithm(boolean recommendedCipherSuitesOnly,
CipherSuite.KeyExchangeAlgorithm... keyExchangeAlgorithms)
Get a list of all cipher suites using the provided key exchange
algorithms.
|
static List<CipherSuite> |
CipherSuite.getEcdsaCipherSuites(boolean recommendedCipherSuitesOnly)
Get a list of all supported ECDSA cipher suites.
|
static List<CipherSuite> |
CipherSuite.getPskCipherSuites(boolean recommendedCipherSuitesOnly,
boolean ecdhePsk)
|
static List<CipherSuite> |
CipherSuite.getTypesByNames(String... names)
Gets a list of cipher suites by their (official) names.
|
static List<CipherSuite> |
CipherSuite.listFromByteArray(byte[] byteArray,
int numElements)
Deprecated.
|
static List<CipherSuite> |
CipherSuite.listFromReader(org.eclipse.californium.elements.util.DatagramReader reader)
Decode cipher suite list from reader.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
AeadBlockCipher.decrypt(CipherSuite suite,
SecretKey key,
byte[] nonce,
byte[] additionalData,
byte[] crypted,
int cryptedOffset,
int cryptedLength)
Decrypt with AEAD cipher.
|
static byte[] |
CbcBlockCipher.decrypt(CipherSuite suite,
SecretKey key,
SecretKey macKey,
byte[] additionalData,
byte[] ciphertext)
Converts a given TLSCiphertext.fragment to a TLSCompressed.fragment
structure as defined by
RFC 5246,
section 6.2.3.2:
|
static byte[] |
CbcBlockCipher.encrypt(CipherSuite suite,
SecretKey key,
SecretKey macKey,
byte[] additionalData,
byte[] payload)
Converts a given TLSCompressed.fragment to a TLSCiphertext.fragment
structure as defined by
RFC 5246,
section 6.2.3.2
|
static byte[] |
AeadBlockCipher.encrypt(int outputOffset,
CipherSuite suite,
SecretKey key,
byte[] nonce,
byte[] additionalData,
byte[] message)
Encrypt with AEAD cipher.
|
void |
CipherSuiteParameters.select(CipherSuite cipherSuite)
Select cipher suite.
|
protected boolean |
DefaultCipherSuiteSelector.select(CipherSuite cipherSuite,
CipherSuiteParameters parameters)
Check, if provided cipher suite is supported by both peers.
|
protected boolean |
DefaultCipherSuiteSelector.selectForCertificate(CipherSuiteParameters parameters,
CipherSuite cipherSuite) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
CipherSuite.containsCipherSuiteRequiringCertExchange(List<CipherSuite> cipherSuites)
Checks if a list of cipher suite contains a cipher suite that requires
the exchange of certificates.
|
static boolean |
CipherSuite.containsEccBasedCipherSuite(List<CipherSuite> cipherSuites)
Checks if a list of cipher suite contains an ECC based cipher.
|
static boolean |
CipherSuite.containsPskBasedCipherSuite(List<CipherSuite> cipherSuites)
Checks if a list of cipher suite contains an PSK based cipher.
|
static byte[] |
CipherSuite.listToByteArray(List<CipherSuite> cipherSuites)
Transform a list of cipher suites into the appropriate bit-format.
|
| Constructor and Description |
|---|
CipherSuiteParameters(PublicKey publicKey,
List<X509Certificate> certificateChain,
boolean clientAuthenticationRequired,
boolean clientAuthenticationWanted,
List<CipherSuite> cipherSuites,
List<CertificateType> serverCertTypes,
List<CertificateType> clientCertTypes,
List<XECDHECryptography.SupportedGroup> supportedGroups,
List<SignatureAndHashAlgorithm> signatures,
SupportedPointFormatsExtension.ECPointFormat format)
Create common cipher suites and parameters.
|
Copyright © 2023 Eclipse Foundation. All rights reserved.