Class DefaultTlsServer

    • Constructor Detail

      • DefaultTlsServer

        public DefaultTlsServer​(TlsCrypto crypto)
    • Method Detail

      • getDSASignerCredentials

        protected TlsCredentialedSigner getDSASignerCredentials()
                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getECDSASignerCredentials

        protected TlsCredentialedSigner getECDSASignerCredentials()
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getRSAEncryptionCredentials

        protected TlsCredentialedDecryptor getRSAEncryptionCredentials()
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getRSASignerCredentials

        protected TlsCredentialedSigner getRSASignerCredentials()
                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getCredentials

        public TlsCredentials getCredentials()
                                      throws java.io.IOException
        Description copied from interface: TlsServer
        Return server credentials to use. The returned value may be null, or else it MUST implement exactly one of TlsCredentialedAgreement, TlsCredentialedDecryptor, or TlsCredentialedSigner, depending on the key exchange that was negotiated.
        Returns:
        a TlsCredentials object or null for anonymous key exchanges
        Throws:
        java.io.IOException