Class PlainSaslServerProvider

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.lang.Object>

    @ThreadSafe
    public final class PlainSaslServerProvider
    extends java.security.Provider
    The Java SunSASL provider supports CRAM-MD5, DIGEST-MD5 and GSSAPI mechanisms on the server side. When the SASL is using PLAIN mechanism, there is no support the SASL server. So there is a new provider needed to register to support server-side PLAIN mechanism.

    Three basic steps to complete a SASL security provider:

    1. Implements PlainSaslServer class which extends SaslServer interface
    2. Provides PlainSaslServer.Factory class that implements SaslServerFactory interface
    3. Provides a JCA provider that registers the factory
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.security.Provider

        java.security.Provider.Service
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MECHANISM  
      static java.lang.String NAME  
      static double VERSION  
      • Fields inherited from class java.util.Properties

        defaults
    • Constructor Summary

      Constructors 
      Constructor Description
      PlainSaslServerProvider()
      Constructs a new provider for the SASL server when using the PLAIN mechanism.
    • Method Summary

      • Methods inherited from class java.security.Provider

        clear, compute, computeIfAbsent, computeIfPresent, configure, elements, entrySet, forEach, get, getInfo, getName, getOrDefault, getProperty, getService, getServices, getVersion, getVersionStr, isConfigured, keys, keySet, load, merge, put, putAll, putIfAbsent, putService, remove, remove, removeService, replace, replace, replaceAll, toString, values
      • Methods inherited from class java.util.Properties

        clone, contains, containsKey, containsValue, equals, getProperty, hashCode, isEmpty, list, list, load, loadFromXML, propertyNames, rehash, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PlainSaslServerProvider

        public PlainSaslServerProvider()
        Constructs a new provider for the SASL server when using the PLAIN mechanism.