Codota Logo
Sasl.getSaslServerFactories
Code IndexAdd Codota to your IDE (free)

How to use
getSaslServerFactories
method
in
javax.security.sasl.Sasl

Best Java code snippets using javax.security.sasl.Sasl.getSaslServerFactories (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.apache.hadoop/hadoop-common

FastSaslServerFactory(Map<String,?> props) {
 final Enumeration<SaslServerFactory> factories =
   Sasl.getSaslServerFactories();
 while (factories.hasMoreElements()) {
  SaslServerFactory factory = factories.nextElement();
  for (String mech : factory.getMechanismNames(props)) {
   if (!factoryCache.containsKey(mech)) {
    factoryCache.put(mech, new ArrayList<SaslServerFactory>());
   }
   factoryCache.get(mech).add(factory);
  }
 }
}
origin: igniterealtime/Openfire

/**
 * Returns a collection of mechanism names for which the JVM has an implementation available.
 * <p/>
 * Note that this need not (and likely will not) correspond with the list of mechanisms that is offered to XMPP
 * peer entities, which is provided by #getSupportedMechanisms.
 *
 * @return a collection of SASL mechanism names (never null, possibly empty)
 */
public static Set<String> getImplementedMechanisms()
{
  final Set<String> result = new HashSet<>();
  final Enumeration<SaslServerFactory> saslServerFactories = Sasl.getSaslServerFactories();
  while ( saslServerFactories.hasMoreElements() )
  {
    final SaslServerFactory saslServerFactory = saslServerFactories.nextElement();
    Collections.addAll( result, saslServerFactory.getMechanismNames( null ) );
  }
  return result;
}
origin: ch.cern.hadoop/hadoop-common

FastSaslServerFactory(Map<String,?> props) {
 final Enumeration<SaslServerFactory> factories =
   Sasl.getSaslServerFactories();
 while (factories.hasMoreElements()) {
  SaslServerFactory factory = factories.nextElement();
  for (String mech : factory.getMechanismNames(props)) {
   if (!factoryCache.containsKey(mech)) {
    factoryCache.put(mech, new ArrayList<SaslServerFactory>());
   }
   factoryCache.get(mech).add(factory);
  }
 }
}
origin: io.hops/hadoop-common

FastSaslServerFactory(Map<String,?> props) {
 final Enumeration<SaslServerFactory> factories =
   Sasl.getSaslServerFactories();
 while (factories.hasMoreElements()) {
  SaslServerFactory factory = factories.nextElement();
  for (String mech : factory.getMechanismNames(props)) {
   if (!factoryCache.containsKey(mech)) {
    factoryCache.put(mech, new ArrayList<SaslServerFactory>());
   }
   factoryCache.get(mech).add(factory);
  }
 }
}
origin: com.github.jiayuhan-it/hadoop-common

FastSaslServerFactory(Map<String,?> props) {
 final Enumeration<SaslServerFactory> factories =
   Sasl.getSaslServerFactories();
 while (factories.hasMoreElements()) {
  SaslServerFactory factory = factories.nextElement();
  for (String mech : factory.getMechanismNames(props)) {
   if (!factoryCache.containsKey(mech)) {
    factoryCache.put(mech, new ArrayList<SaslServerFactory>());
   }
   factoryCache.get(mech).add(factory);
  }
 }
}
origin: io.prestosql.hadoop/hadoop-apache

FastSaslServerFactory(Map<String,?> props) {
 final Enumeration<SaslServerFactory> factories =
   Sasl.getSaslServerFactories();
 while (factories.hasMoreElements()) {
  SaslServerFactory factory = factories.nextElement();
  for (String mech : factory.getMechanismNames(props)) {
   if (!factoryCache.containsKey(mech)) {
    factoryCache.put(mech, new ArrayList<SaslServerFactory>());
   }
   factoryCache.get(mech).add(factory);
  }
 }
}
origin: org.igniterealtime.openfire/xmppserver

/**
 * Returns a collection of mechanism names for which the JVM has an implementation available.
 * <p/>
 * Note that this need not (and likely will not) correspond with the list of mechanisms that is offered to XMPP
 * peer entities, which is provided by #getSupportedMechanisms.
 *
 * @return a collection of SASL mechanism names (never null, possibly empty)
 */
public static Set<String> getImplementedMechanisms()
{
  final Set<String> result = new HashSet<>();
  final Enumeration<SaslServerFactory> saslServerFactories = Sasl.getSaslServerFactories();
  while ( saslServerFactories.hasMoreElements() )
  {
    final SaslServerFactory saslServerFactory = saslServerFactories.nextElement();
    Collections.addAll( result, saslServerFactory.getMechanismNames( null ) );
  }
  return result;
}
origin: org.apache.drill.exec/drill-java-exec

private void refresh() {
 final Enumeration<SaslServerFactory> factories = Sasl.getSaslServerFactories();
 final Map<String, List<SaslServerFactory>> map = Maps.newHashMap();
 while (factories.hasMoreElements()) {
  final SaslServerFactory factory = factories.nextElement();
  // Passing null so factory is populated with all possibilities.  Properties passed when
  // instantiating a server are what really matter. See createSaslServer.
  for (final String mechanismName : factory.getMechanismNames(null)) {
   if (!map.containsKey(mechanismName)) {
    map.put(mechanismName, new ArrayList<SaslServerFactory>());
   }
   map.get(mechanismName).add(factory);
  }
 }
 serverFactories = ImmutableMap.copyOf(map);
 if (logger.isDebugEnabled()) {
  logger.debug("Registered sasl server factories: {}", serverFactories.keySet());
 }
}
origin: kontalk/tigase-server

@Override
public Element[] supStreamFeatures(final XMPPResourceConnection session) {
  if ((session == null) || session.isAuthorized()) {
    return null;
  } else {
    Collection<String> auth_mechs = mechanismSelector.filterMechanisms(Sasl
        .getSaslServerFactories(), session);
    Element[] mechs = new Element[auth_mechs.size()];
    int       idx   = 0;
    session.putSessionData(ALLOWED_SASL_MECHANISMS_KEY, auth_mechs);
    for (String mech : auth_mechs) {
      mechs[idx++] = new Element("mechanism", mech);
    }
    return new Element[] { new Element("mechanisms", mechs, new String[] { "xmlns" },
        new String[] { _XMLNS }) };
  }
}

origin: kontalk/tigase-server

StringBuilder            response = new StringBuilder("<username/>");
final Collection<String> auth_mechs = mechanismSelector.filterMechanisms(Sasl
    .getSaslServerFactories(), session);
origin: kontalk/tigase-server

allowedMechanisms = mechanismSelector.filterMechanisms(Sasl.getSaslServerFactories(), session);
javax.security.saslSaslgetSaslServerFactories

Popular methods of Sasl

  • createSaslClient
  • createSaslServer
  • getSaslClientFactories

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • findViewById (Activity)
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now