public class CipherSuiteParameters extends Object
| 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.
|
public 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)
publicKey - peer's public key. Maybe null.certificateChain - peer's certificate chain. Maybe null.clientAuthenticationRequired - true, if client
authentication is required, false otherwise.clientAuthenticationWanted - true, if client authentication
is wanted, false otherwise.cipherSuites - list of common cipher suitesserverCertTypes - list of common server certificate types.clientCertTypes - list of common client certificate types.supportedGroups - list of common supported groups (curves)signatures - list of common signtaures and algorithms.format - common ec point format. Only
SupportedPointFormatsExtension.ECPointFormat.UNCOMPRESSED is supported.public List<CipherSuite> getCipherSuites()
public List<CertificateType> getServerCertTypes()
public List<CertificateType> getClientCertTypes()
public List<XECDHECryptography.SupportedGroup> getSupportedGroups()
public List<SignatureAndHashAlgorithm> getSignatures()
public SupportedPointFormatsExtension.ECPointFormat getFormat()
public PublicKey getPublicKey()
public List<X509Certificate> getCertificateChain()
public boolean isClientAuthenticationRequired()
public boolean isClientAuthenticationWanted()
public CipherSuite getSelectedCipherSuite()
public CertificateType getSelectedServerCertificateType()
null, if not
available.public CertificateType getSelectedClientCertificateType()
null, if not
available.public XECDHECryptography.SupportedGroup getSelectedSupportedGroup()
null, if not available.public SignatureAndHashAlgorithm getSelectedSignature()
null, if not
available.public void select(CipherSuite cipherSuite)
cipherSuite - selected cipher suitepublic void selectServerCertificateType(CertificateType type)
type - selected server certificate type. Maybe null, if not
available.public void selectClientCertificateType(CertificateType type)
type - selected client certificate type. Maybe null, if not
available or client certificate not requested.public void selectSignatureAndHashAlgorithm(SignatureAndHashAlgorithm signature)
signature - selected signature and hashe algorithm. Maybe
null, if not available.Copyright © 2023 Eclipse Foundation. All rights reserved.