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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.tls.CertificateRequest
     
    org.bouncycastle.tls.TlsCredentials
     
    org.bouncycastle.tls.Certificate
     
    protected org.bouncycastle.tls.TlsCredentialedDecryptor
     
    protected org.bouncycastle.tls.TlsCredentialedSigner
     
    int
     
    void
    notifyClientCertificate(org.bouncycastle.tls.Certificate clientCertificate)
     
    void
     
    void
     
    protected boolean
    selectCipherSuite(int cipherSuite)
     

    Methods inherited from class org.bouncycastle.tls.DefaultTlsServer

    getDSASignerCredentials, getECDSASignerCredentials, getSupportedCipherSuites

    Methods 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, shouldSelectProtocolNameEarly

    Methods 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, shouldUseGMTUnixTime

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public org.bouncycastle.tls.CertificateRequest getCertificateRequest() throws IOException
      Specified by:
      getCertificateRequest in interface org.bouncycastle.tls.TlsServer
      Overrides:
      getCertificateRequest in class org.bouncycastle.tls.AbstractTlsServer
      Throws:
      IOException
    • getCredentials

      public org.bouncycastle.tls.TlsCredentials getCredentials() throws IOException
      Specified by:
      getCredentials in interface org.bouncycastle.tls.TlsServer
      Overrides:
      getCredentials in class org.bouncycastle.tls.DefaultTlsServer
      Throws:
      IOException
    • getLocalCertificates

      public org.bouncycastle.tls.Certificate getLocalCertificates()
    • getSelectedCipherSuite

      public int getSelectedCipherSuite() throws IOException
      Specified by:
      getSelectedCipherSuite in interface org.bouncycastle.tls.TlsServer
      Overrides:
      getSelectedCipherSuite in class org.bouncycastle.tls.AbstractTlsServer
      Throws:
      IOException
    • notifyClientCertificate

      public void notifyClientCertificate(org.bouncycastle.tls.Certificate clientCertificate) throws IOException
      Specified by:
      notifyClientCertificate in interface org.bouncycastle.tls.TlsServer
      Overrides:
      notifyClientCertificate in class org.bouncycastle.tls.AbstractTlsServer
      Throws:
      IOException
    • notifyHandshakeComplete

      public void notifyHandshakeComplete() throws IOException
      Specified by:
      notifyHandshakeComplete in interface org.bouncycastle.tls.TlsPeer
      Overrides:
      notifyHandshakeComplete in class org.bouncycastle.tls.AbstractTlsPeer
      Throws:
      IOException
    • processClientExtensions

      public void processClientExtensions(Hashtable clientExtensions) throws IOException
      Specified by:
      processClientExtensions in interface org.bouncycastle.tls.TlsServer
      Overrides:
      processClientExtensions in class org.bouncycastle.tls.AbstractTlsServer
      Throws:
      IOException
    • getRSAEncryptionCredentials

      protected org.bouncycastle.tls.TlsCredentialedDecryptor getRSAEncryptionCredentials()
      Overrides:
      getRSAEncryptionCredentials in class org.bouncycastle.tls.DefaultTlsServer
    • getRSASignerCredentials

      protected org.bouncycastle.tls.TlsCredentialedSigner getRSASignerCredentials()
      Overrides:
      getRSASignerCredentials in class org.bouncycastle.tls.DefaultTlsServer
    • selectCipherSuite

      protected boolean selectCipherSuite(int cipherSuite) throws IOException
      Overrides:
      selectCipherSuite in class org.bouncycastle.tls.AbstractTlsServer
      Throws:
      IOException