Package com.isode.som

Class SomSaslClientFactory

  • All Implemented Interfaces:
    javax.security.sasl.SaslClientFactory

    public class SomSaslClientFactory
    extends java.lang.Object
    implements javax.security.sasl.SaslClientFactory
    Class which provides a SaslClientFactory which can create SomScramSha1Client instances.
    Since:
    16.1
    Author:
    tc
    • Constructor Summary

      Constructors 
      Constructor Description
      SomSaslClientFactory()
      Default constructor required by implementation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.security.sasl.SaslClient createSaslClient​(java.lang.String[] mechs, java.lang.String authz, java.lang.String prot, java.lang.String server, java.util.Map<java.lang.String,​?> props, javax.security.auth.callback.CallbackHandler cbh)
      Factory method which creates a SASL client which uses SCRAM-SHA-1
      java.lang.String[] getMechanismNames​(java.util.Map<java.lang.String,​?> arg0)
      Return the mechanisms which this client supports
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SomSaslClientFactory

        public SomSaslClientFactory()
        Default constructor required by implementation.
    • Method Detail

      • createSaslClient

        public javax.security.sasl.SaslClient createSaslClient​(java.lang.String[] mechs,
                                                               java.lang.String authz,
                                                               java.lang.String prot,
                                                               java.lang.String server,
                                                               java.util.Map<java.lang.String,​?> props,
                                                               javax.security.auth.callback.CallbackHandler cbh)
                                                        throws javax.security.sasl.SaslException
        Factory method which creates a SASL client which uses SCRAM-SHA-1
        Specified by:
        createSaslClient in interface javax.security.sasl.SaslClientFactory
        Parameters:
        mechs - array of SASL mechanism names
        authz - SASL authid
        prot - protocol to use
        server - server name
        props - properties
        cbh - callback handler
        Throws:
        javax.security.sasl.SaslException
      • getMechanismNames

        public java.lang.String[] getMechanismNames​(java.util.Map<java.lang.String,​?> arg0)
        Return the mechanisms which this client supports
        Specified by:
        getMechanismNames in interface javax.security.sasl.SaslClientFactory
        Parameters:
        arg0 - not used
        Returns:
        array of mechanism names