Package tigase.extras.bcstarttls
Class DefaultTls13Server
java.lang.Object
org.bouncycastle.tls.AbstractTlsPeer
org.bouncycastle.tls.AbstractTlsServer
org.bouncycastle.tls.DefaultTlsServer
tigase.extras.bcstarttls.DefaultTls13Server
- All Implemented Interfaces:
org.bouncycastle.tls.TlsPeer,org.bouncycastle.tls.TlsServer
public class DefaultTls13Server
extends org.bouncycastle.tls.DefaultTlsServer
-
Field Summary
Fields inherited from class org.bouncycastle.tls.AbstractTlsServer
certificateStatusRequest, cipherSuites, clientExtensions, clientProtocolNames, clientSentECPointFormats, context, encryptThenMACOffered, maxFragmentLengthOffered, offeredCipherSuites, protocolVersions, selectedCipherSuite, selectedProtocolName, serverExtensions, statusRequestV2, truncatedHMacOffered, trustedCAKeys -
Constructor Summary
ConstructorsConstructorDescriptionDefaultTls13Server(org.bouncycastle.tls.crypto.impl.bc.BcTlsCrypto crypto, boolean needClientAuth, boolean wantClientAuth, Collection<org.bouncycastle.asn1.x500.X500Name> acceptedIssuers, CredentialsProvider credentialsProvider, HandshakeCompletedListener handshakeCompletedListener) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.tls.CertificateRequestorg.bouncycastle.tls.TlsCredentialsorg.bouncycastle.tls.Certificateprotected org.bouncycastle.tls.TlsCredentialedDecryptorprotected org.bouncycastle.tls.TlsCredentialedSignerintvoidnotifyClientCertificate(org.bouncycastle.tls.Certificate clientCertificate) voidvoidprocessClientExtensions(Hashtable clientExtensions) protected booleanselectCipherSuite(int cipherSuite) Methods inherited from class org.bouncycastle.tls.DefaultTlsServer
getDSASignerCredentials, getECDSASignerCredentials, getSupportedCipherSuitesMethods inherited from class org.bouncycastle.tls.AbstractTlsServer
allowCertificateStatus, allowEncryptThenMAC, allowMultiCertStatus, allowTruncatedHMac, allowTrustedCAIndication, checkServerExtensions, getAllowedClientCertificateTypes, getCertificateStatus, getCipherSuites, getDetailMessageNoCipherSuite, getDHConfig, getECDHConfig, getExternalPSK, getMaximumNegotiableCurveBits, getMaximumNegotiableFiniteFieldBits, getNewConnectionID, getNewSessionID, getNewSessionTicket, getProtocolNames, getProtocolVersions, getPSKIdentityManager, getServerExtensions, getServerExtensionsForConnection, getServerSupplementalData, getServerVersion, getSessionToResume, getSRPLoginParameters, getSupportedGroups, init, isSelectableCipherSuite, notifyClientVersion, notifyFallback, notifyHandshakeBeginning, notifyOfferedCipherSuites, notifySession, preferLocalCipherSuites, preferLocalClientCertificateTypes, processClientSupplementalData, selectDH, selectDHDefault, selectECDH, selectECDHDefault, selectProtocolName, selectProtocolName, shouldSelectProtocolNameEarlyMethods inherited from class org.bouncycastle.tls.AbstractTlsPeer
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, getSupportedVersions, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bouncycastle.tls.TlsPeer
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
-
Constructor Details
-
DefaultTls13Server
public DefaultTls13Server(org.bouncycastle.tls.crypto.impl.bc.BcTlsCrypto crypto, boolean needClientAuth, boolean wantClientAuth, Collection<org.bouncycastle.asn1.x500.X500Name> acceptedIssuers, CredentialsProvider credentialsProvider, HandshakeCompletedListener handshakeCompletedListener)
-
-
Method Details
-
getCertificateRequest
- Specified by:
getCertificateRequestin interfaceorg.bouncycastle.tls.TlsServer- Overrides:
getCertificateRequestin classorg.bouncycastle.tls.AbstractTlsServer- Throws:
IOException
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.bouncycastle.tls.TlsServer- Overrides:
getCredentialsin classorg.bouncycastle.tls.DefaultTlsServer- Throws:
IOException
-
getLocalCertificates
public org.bouncycastle.tls.Certificate getLocalCertificates() -
getSelectedCipherSuite
- Specified by:
getSelectedCipherSuitein interfaceorg.bouncycastle.tls.TlsServer- Overrides:
getSelectedCipherSuitein classorg.bouncycastle.tls.AbstractTlsServer- Throws:
IOException
-
notifyClientCertificate
public void notifyClientCertificate(org.bouncycastle.tls.Certificate clientCertificate) throws IOException - Specified by:
notifyClientCertificatein interfaceorg.bouncycastle.tls.TlsServer- Overrides:
notifyClientCertificatein classorg.bouncycastle.tls.AbstractTlsServer- Throws:
IOException
-
notifyHandshakeComplete
- Specified by:
notifyHandshakeCompletein interfaceorg.bouncycastle.tls.TlsPeer- Overrides:
notifyHandshakeCompletein classorg.bouncycastle.tls.AbstractTlsPeer- Throws:
IOException
-
processClientExtensions
- Specified by:
processClientExtensionsin interfaceorg.bouncycastle.tls.TlsServer- Overrides:
processClientExtensionsin classorg.bouncycastle.tls.AbstractTlsServer- Throws:
IOException
-
getRSAEncryptionCredentials
protected org.bouncycastle.tls.TlsCredentialedDecryptor getRSAEncryptionCredentials()- Overrides:
getRSAEncryptionCredentialsin classorg.bouncycastle.tls.DefaultTlsServer
-
getRSASignerCredentials
protected org.bouncycastle.tls.TlsCredentialedSigner getRSASignerCredentials()- Overrides:
getRSASignerCredentialsin classorg.bouncycastle.tls.DefaultTlsServer
-
selectCipherSuite
- Overrides:
selectCipherSuitein classorg.bouncycastle.tls.AbstractTlsServer- Throws:
IOException
-