Examples of AuthenticationMechanismMetaData


Examples of org.jboss.metadata.rar.spec.AuthenticationMechanismMetaData

      }
      if (md.getRa().getOutboundRa().getAuthMechanisms() == null)
      {
         md.getRa().getOutboundRa().setAuthMechanisms(new ArrayList<AuthenticationMechanismMetaData>());
      }
      AuthenticationMechanismMetaData ammd = new AuthenticationMechanismMetaData();
      ammd.setAuthenticationMechanismType(authenticationmechanism.authMechanism());
     
      String credentialInterfaceClass = null;
      if (authenticationmechanism.credentialInterface().equals(CredentialInterface.GenericCredential))
      {
         credentialInterfaceClass = "javax.resource.spi.security.GenericCredential";
      }
      else if (authenticationmechanism.credentialInterface().equals(CredentialInterface.GSSCredential))
      {
         credentialInterfaceClass = "org.ietf.jgss.GSSCredential";
      }
      else if (authenticationmechanism.credentialInterface().equals(CredentialInterface.PasswordCredential))
      {
         credentialInterfaceClass = "javax.resource.spi.security.PasswordCredential";
      }
      ammd.setCredentialInterfaceClass(credentialInterfaceClass);
     
      String[] description = authenticationmechanism.description();
      if (description != null)
      {
         if (ammd.getDescriptions() == null)
         {
            DescriptionsImpl descsImpl = new DescriptionsImpl();
            ammd.setDescriptions(descsImpl);
         }
         for (String desc : description)
         {
            DescriptionImpl descImpl = new DescriptionImpl();
            descImpl.setDescription(desc);
            ((DescriptionsImpl)ammd.getDescriptions()).add(descImpl);
         }
      }
     
      md.getRa().getOutboundRa().getAuthMechanisms().add(ammd);
View Full Code Here

Examples of org.jboss.resource.metadata.AuthenticationMechanismMetaData

         cmd.setTransactionSupport(tsmd);
         return tsmd;
      }
      else if (localName.equals("authentication-mechanism"))
      {
         AuthenticationMechanismMetaData ammd = new AuthenticationMechanismMetaData();
         cmd.setAuthenticationMechansim(ammd);
         return ammd;
      }
      else if (localName.equals("inbound-resourceadapter") ||
               localName.equals("messageadapter"))
View Full Code Here

Examples of org.jboss.resource.metadata.AuthenticationMechanismMetaData

         cdmd.getConnector().setTransactionSupport(tsmd);
         return tsmd;
      }
      else if (localName.equals("authentication-mechanism"))
      {
         AuthenticationMechanismMetaData ammd = new AuthenticationMechanismMetaData();
         cdmd.getConnector().setAuthenticationMechansim(ammd);
         return ammd;
      }
      else if (localName.equals("security-permission"))
      {
View Full Code Here

Examples of org.jboss.resource.metadata.AuthenticationMechanismMetaData

/* 122 */       cmd.setTransactionSupport(tsmd);
/* 123 */       return tsmd;
/*     */     }
/* 125 */     if (localName.equals("authentication-mechanism"))
/*     */     {
/* 127 */       AuthenticationMechanismMetaData ammd = new AuthenticationMechanismMetaData();
/* 128 */       cmd.setAuthenticationMechansim(ammd);
/* 129 */       return ammd;
/*     */     }
/* 131 */     if ((localName.equals("inbound-resourceadapter")) || (localName.equals("messageadapter")))
/*     */     {
View Full Code Here

Examples of org.jboss.resource.metadata.AuthenticationMechanismMetaData

/* 400 */       cdmd.getConnector().setTransactionSupport(tsmd);
/* 401 */       return tsmd;
/*     */     }
/* 403 */     if (localName.equals("authentication-mechanism"))
/*     */     {
/* 405 */       AuthenticationMechanismMetaData ammd = new AuthenticationMechanismMetaData();
/* 406 */       cdmd.getConnector().setAuthenticationMechansim(ammd);
/* 407 */       return ammd;
/*     */     }
/* 409 */     if (localName.equals("security-permission"))
/*     */     {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.