tigase.auth.mechanisms

## Class AbstractSasl

- java.lang.Object
- - tigase.auth.mechanisms.AbstractSasl

- All Implemented Interfaces:
    SaslServer
  Direct Known Subclasses:
    AbstractSaslSCRAM, SaslANONYMOUS, SaslEXTERNAL, SaslPLAIN

      public abstract class AbstractSasl
      extends Object
      implements SaslServer

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected String` | `authorizedId`
    `protected CallbackHandler` | `callbackHandler`
    `protected boolean` | `complete`
    `protected Logger` | `log`
    `protected Map<String,Object>` | `negotiatedProperty`
    `static String` | `PASSWORD_NOT_VERIFIED_MSG`
    `protected Map<? super String,?>` | `props`
    `static String` | `SASL_STRICT_MODE_KEY`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `AbstractSasl(Map<? super String,?> props, CallbackHandler callbackHandler)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `dispose()`
    `Object` | `getNegotiatedProperty(String propName)`
    `protected void` | `handleCallbacks(Callback... callbacks)`
    `static boolean` | `isAuthzIDIgnored()`
    `boolean` | `isComplete()`
    `protected static boolean` | `isEmpty(Object x)`
    `protected String[]` | `split(byte[] byteArray, String defaultValue)`

    - ### Methods inherited from class java.lang.Object

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

    - ### Methods inherited from interface javax.security.sasl.SaslServer

      `evaluateResponse, getAuthorizationID, getMechanismName, unwrap, wrap`

- - ### Field Detail

    - #### SASL_STRICT_MODE_KEY

          public static final String SASL_STRICT_MODE_KEY

      See Also:
        Constant Field Values

    - #### PASSWORD_NOT_VERIFIED_MSG

          public static String PASSWORD_NOT_VERIFIED_MSG

    - #### callbackHandler

          protected final CallbackHandler callbackHandler

    - #### log

          protected final Logger log

    - #### negotiatedProperty

          protected final Map<String,Object> negotiatedProperty

    - #### props

          protected final Map<? super String,?> props

    - #### authorizedId

          protected String authorizedId

    - #### complete

          protected boolean complete

  - ### Constructor Detail

    - #### AbstractSasl

          protected AbstractSasl(Map<? super String,?> props,
                                 CallbackHandler callbackHandler)

  - ### Method Detail

    - #### isAuthzIDIgnored

          public static boolean isAuthzIDIgnored()

    - #### isEmpty

          protected static final boolean isEmpty(Object x)

    - #### dispose

          public void dispose()

      Specified by:
        `dispose` in interface `SaslServer`

    - #### getNegotiatedProperty

          public Object getNegotiatedProperty(String propName)

      Specified by:
        `getNegotiatedProperty` in interface `SaslServer`

    - #### handleCallbacks

          protected void handleCallbacks(Callback... callbacks)
                                  throws SaslException

      Throws:
        `SaslException`

    - #### isComplete

          public boolean isComplete()

      Specified by:
        `isComplete` in interface `SaslServer`

    - #### split

          protected String[] split(byte[] byteArray,
                                   String defaultValue)

Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.