Tabnine Logo
AuthenticationMechanism
Code IndexAdd Tabnine to your IDE (free)

How to use
AuthenticationMechanism
in
javax.resource.spi

Best Java code snippets using javax.resource.spi.AuthenticationMechanism (Showing top 5 results out of 315)

origin: org.jboss.ironjacamar.jdk8/ironjacamar-common-impl

private ArrayList<AuthenticationMechanism> processAuthenticationMechanism(
   javax.resource.spi.AuthenticationMechanism[] authMechanismAnnotations)
{
 ArrayList<AuthenticationMechanism> authenticationMechanisms = null;
 if (authMechanismAnnotations != null)
 {
   authenticationMechanisms = new ArrayList<AuthenticationMechanism>(authMechanismAnnotations.length);
   for (javax.resource.spi.AuthenticationMechanism authMechanismAnnotation : authMechanismAnnotations)
   {
    ArrayList<LocalizedXsdString> descriptions = null;
    if (authMechanismAnnotation.description() != null && authMechanismAnnotation.description().length != 0)
    {
      descriptions = new ArrayList<LocalizedXsdString>(authMechanismAnnotation.description().length);
      for (String descriptionAnnoptation : authMechanismAnnotation.description())
      {
       descriptions.add(new LocalizedXsdString(descriptionAnnoptation, null));
      }
    }
    XsdString authenticationMechanismType = new XsdString(authMechanismAnnotation
       .authMechanism(), null);
    authenticationMechanisms.add(new AuthenticationMechanismImpl(descriptions, authenticationMechanismType,
                                   CredentialInterfaceEnum
                                    .valueOf(authMechanismAnnotation
                                      .credentialInterface()
                                         .name()), null, null));
   }
 }
 return authenticationMechanisms;
}
origin: org.glassfish.deployment/dol

String[] description = authMechanism.description();
int authMechanismValue = getAuthMechVal(authMechanism.authMechanism());
AuthenticationMechanism.CredentialInterface ci = authMechanism.credentialInterface();
String credentialInterface = ora.getCredentialInterfaceName(ci);
origin: org.glassfish.connectors/connectors-runtime

if (auths != null && auths.length > 0) {
  for (AuthenticationMechanism auth : auths) {
    String authMechString = auth.authMechanism();
    int authMechInt = AuthMechanism.getAuthMechInt(authMechString);
      if (ddAuthMechanism.getAuthMechType().equals(auth.authMechanism())) {
        ignore = true;
        break;
      String credentialInterfaceName = ora.getCredentialInterfaceName(auth.credentialInterface());
      if(auth.description().length > 0){
        description = auth.description()[0];
origin: org.apache.openejb/openejb-core

for (final javax.resource.spi.AuthenticationMechanism am : authMechanisms) {
  final AuthenticationMechanism authMechanism = new AuthenticationMechanism();
  authMechanism.setAuthenticationMechanismType(am.authMechanism());
  authMechanism.setCredentialInterface(am.credentialInterface().toString());
  authMechanism.setDescriptions(stringsToTexts(am.description()));
origin: org.apache.tomee/openejb-core

for (final javax.resource.spi.AuthenticationMechanism am : authMechanisms) {
  final AuthenticationMechanism authMechanism = new AuthenticationMechanism();
  authMechanism.setAuthenticationMechanismType(am.authMechanism());
  authMechanism.setCredentialInterface(am.credentialInterface().toString());
  authMechanism.setDescriptions(stringsToTexts(am.description()));
javax.resource.spiAuthenticationMechanism

Most used methods

  • authMechanism
  • credentialInterface
  • description

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now