Class JnlpClientDatabase


  • public abstract class JnlpClientDatabase
    extends Object
    Represents a database of clients that are permitted to connect.
    Since:
    3.0
    • Constructor Detail

      • JnlpClientDatabase

        public JnlpClientDatabase()
    • Method Detail

      • exists

        public abstract boolean exists​(String clientName)
        Check if the supplied client name exists.
        Parameters:
        clientName - the client name.
        Returns:
        true if and only if the named client exists.
      • getSecretOf

        public abstract String getSecretOf​(@NonNull
                                           String clientName)
        Gets the secret for the supplied client name.
        Parameters:
        clientName - the client name.
        Returns:
        the secret or null. Should not return null if exists(String) but this may occur if there is a race between establishing a connection and the client being removed from the database.
      • validateCertificate

        @NonNull
        public JnlpClientDatabase.ValidationResult validateCertificate​(@NonNull
                                                                       String clientName,
                                                                       @NonNull
                                                                       X509Certificate certificate)
        Performs client certificate validation.
        Parameters:
        clientName - the client name.
        certificate - the certificate.
        Returns:
        the validation.