Class AbstractSaslRequest

    • Field Detail

      • saslMechanism

        protected String saslMechanism
        The mechanism used to decode user identity
      • controls

        protected List<Control> controls
        The list of controls
      • username

        protected String username
        The username
      • credentials

        protected byte[] credentials
        The credentials
      • realmName

        protected String realmName
        The realm name on the server
      • authorizationId

        protected String authorizationId
        The authorization ID of the entity
      • qualityOfProtection

        protected SaslQoP qualityOfProtection
        The quality of protection
      • mutualAuthentication

        protected boolean mutualAuthentication
        Require mutual authentication
    • Constructor Detail

      • AbstractSaslRequest

        protected AbstractSaslRequest​(String saslMechanism)
        Creates a new instance of SaslRequest.
        Parameters:
        saslMechanism - the SASL mechanism
    • Method Detail

      • addAllControls

        public void addAllControls​(Control[] controls)
        Adds the given controls.
        Parameters:
        controls - the controls
      • addControl

        public void addControl​(Control control)
        Adds the given control.
        Parameters:
        control - the control
      • getCredentials

        public byte[] getCredentials()
        Gets the crendentials
        Specified by:
        getCredentials in interface SaslRequest
        Returns:
        the credentials
      • isMutualAuthentication

        public boolean isMutualAuthentication()
        Indicates if mutual authentication is required.
        Specified by:
        isMutualAuthentication in interface SaslRequest
        Returns:
        the flag indicating if mutual authentication is required
      • setAuthorizationId

        public void setAuthorizationId​(String authorizationId)
        Sets the Authorization ID
        Parameters:
        authorizationId - The authorization ID
      • setCredentials

        public void setCredentials​(byte[] credentials)
        Sets the credentials.
        Parameters:
        credentials - the credentials
      • setCredentials

        public void setCredentials​(String credentials)
        Sets the credentials.
        Parameters:
        credentials - the credentials
      • setMutualAuthentication

        public void setMutualAuthentication​(boolean mutualAuthentication)
        Sets the flag indicating if mutual authentication is required.
        Parameters:
        mutualAuthentication - the flag indicating if mutual authentication is required
      • setQualityOfProtection

        public void setQualityOfProtection​(SaslQoP qualityOfProtection)
        Sets the quality of protection.
        Parameters:
        qualityOfProtection - the quality of protection
      • setRealmName

        protected void setRealmName​(String realmName)
        Sets the realm name.
        Parameters:
        realmName - The realm name
      • setSaslMechanism

        protected void setSaslMechanism​(String saslMechanism)
        Sets the SASL mechanism
        Parameters:
        saslMechanism - the SASL mechanism
      • setSecurityStrength

        public void setSecurityStrength​(SaslSecurityStrength securityStrength)
        Sets the security strength.
        Parameters:
        securityStrength - the security strength
      • setUsername

        public void setUsername​(String username)
        Sets the username.
        Parameters:
        username - the username