Examples of CredentialImpl


Examples of org.jboss.jca.common.metadata.common.CredentialImpl

            case END_ELEMENT : {
               if (DataSource.Tag.forName(reader.getLocalName()) == DataSource.Tag.SECURITY ||
                   Recovery.Tag.forName(reader.getLocalName()) == Recovery.Tag.RECOVER_CREDENTIAL)
               {

                  return new CredentialImpl(userName, password, securityDomain);
               }
               else
               {
                  if (Credential.Tag.forName(reader.getLocalName()) == Credential.Tag.UNKNOWN)
                  {
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.CredentialImpl

    private static CommonConnDef createConnDef(String jndiName) throws ValidateException {
        CommonPoolImpl pool = new CommonPoolImpl(null, null, false, false, FlushStrategy.FAILING_CONNECTION_ONLY);
        CommonTimeOutImpl timeOut = new CommonTimeOutImpl(null, null, null, null, null);
        CommonSecurityImpl security = null;
        Recovery recovery = new Recovery(new CredentialImpl(null, null, null), null, Boolean.FALSE);
        CommonValidationImpl validation = new CommonValidationImpl(null, null, false);
        return new CommonConnDefImpl(Collections.<String, String>emptyMap(), RAMANAGED_CONN_FACTORY, jndiName, HQ_CONN_DEF, true, true, true, pool, timeOut, validation, security, recovery);
    }
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.CredentialImpl

            case END_ELEMENT : {
               if (DataSource.Tag.forName(reader.getLocalName()) == DataSource.Tag.SECURITY ||
                   Recovery.Tag.forName(reader.getLocalName()) == Recovery.Tag.RECOVER_CREDENTIAL)
               {

                  return new CredentialImpl(userName, password, securityDomain);
               }
               else
               {
                  if (Credential.Tag.forName(reader.getLocalName()) == Credential.Tag.UNKNOWN)
                  {
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.CredentialImpl

                  CommonPool pool = null;
                  CommonConnDefImpl connImpl;
                  if (transSupport.equals(TransactionSupportEnum.XATransaction))
                  {
                     pool = xaPoolImpl;
                     Recovery recovery = new Recovery(new CredentialImpl("user", "password", null), null, false);
                     connImpl = new CommonConnDefImpl(configProperty, mcfClassName, "java:jboss/eis/" + poolName,
                        poolName, Defaults.ENABLED, Defaults.USE_JAVA_CONTEXT, Defaults.USE_CCM, pool, null, null,
                        secImpl, recovery, Boolean.TRUE);
                  }
                  else
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.CredentialImpl

   {
      if (recoveryUsername == null || recoveryUsername.equals(""))
         recoveryUsername = "user";
      if (recoveryPassword == null || recoveryPassword.equals(""))
         recoveryPassword = "password";
      recovery = new Recovery(new CredentialImpl(recoveryUsername, recoveryPassword, null), null, noRecovery);
      return this;
   }
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.CredentialImpl

      Boolean isXA = Boolean.FALSE;
      Recovery recovery = null;
      if (transactionSupport.equals(TransactionSupportEnum.XATransaction))
      {
         isXA = Boolean.TRUE;
         recovery = new Recovery(new CredentialImpl("user", "password", null), null, false);
      }
      CommonConnDefImpl connDef = new CommonConnDefImpl(connConfigProperty, "FIXME", jndiName, poolName,
                                                        Defaults.ENABLED, Defaults.USE_JAVA_CONTEXT, Defaults.USE_CCM,
                                                        Defaults.SHARABLE, Defaults.ENLISTMENT,
                                                        pool, timeOut, validation, security, recovery, isXA);
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.CredentialImpl

        final String recoveryUsername = getStringIfSetOrGetDefault(operation, RECOVERY_USERNAME.getName(), null);
        //TODO This will be cleaned up once it uses attribute definitions
        String recoveryPassword = getResolvedStringIfSetOrGetDefault(context, operation, RECOVERY_PASSWORD.getName(), null);
        final String recoverySecurityDomain = getStringIfSetOrGetDefault(operation, RECOVERY_SECURITY_DOMAIN.getName(), null);

        final Credential credential = new CredentialImpl(recoveryUsername, recoveryPassword, recoverySecurityDomain);

        final Extension recoverPlugin = extractExtension(operation, RECOVERLUGIN_CLASSNAME.getName(), RECOVERLUGIN_PROPERTIES.getName());
        final boolean noRecovery = getBooleanIfSetOrGetDefault(operation, NO_RECOVERY.getName(), false);
        Recovery recovery = new Recovery(credential, recoverPlugin, noRecovery);
        ModifiableConnDef connectionDefinition = new ModifiableConnDef(configProperties, className, jndiName, poolName,
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.CredentialImpl

        final String recoveryUsername = getStringIfSetOrGetDefault(dataSourceNode, RECOVERY_USERNAME, null);
        final String recoveryPassword = getResolvedStringIfSetOrGetDefault(operationContext, dataSourceNode, RECOVERY_PASSWORD, null);
        final String recoverySecurityDomain = getStringIfSetOrGetDefault(dataSourceNode, RECOVERY_SECURITY_DOMAIN, null);

        final Credential credential = new CredentialImpl(recoveryUsername, recoveryPassword, recoverySecurityDomain);

        final Extension recoverPlugin = extractExtension(dataSourceNode, RECOVERLUGIN_CLASSNAME, RECOVERLUGIN_PROPERTIES);
        final boolean noRecovery = getBooleanIfSetOrGetDefault(dataSourceNode, NO_RECOVERY, false);
        Recovery recovery = new Recovery(credential, recoverPlugin, noRecovery);
        return new ModifiableXaDataSource(transactionIsolation, timeOut, security, statement, validation, urlDelimiter,
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.CredentialImpl

   {
      if (recoveryUsername == null || recoveryUsername.equals(""))
         recoveryUsername = "user";
      if (recoveryPassword == null || recoveryPassword.equals(""))
         recoveryPassword = "password";
      recovery = new Recovery(new CredentialImpl(recoveryUsername, recoveryPassword, null), null, noRecovery);
      return this;
   }
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.CredentialImpl

   public void buildResourceAdapterImpl()  throws Exception
   {
      Recovery recovery = null;
      if (transactionSupport.equals(TransactionSupportEnum.XATransaction))
      {
         recovery = new Recovery(new CredentialImpl("user", "password", null), null, false);
      }
      CommonConnDefImpl connDef = new CommonConnDefImpl(connConfigProperty, connectionDefinition, jndiName, poolName,
                                                        Defaults.ENABLED, Defaults.USE_JAVA_CONTEXT, Defaults.USE_CCM,
                                                        pool, timeOut, validation, security, recovery);
      connectionDefinitions = new ArrayList<CommonConnDef>();
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.