/** * Creates the ResourcePrincipal object from the given securityMap * * @param securityMap SecurityMap * @return created ResourcePrincipal object */ private static ResourcePrincipal generateResourcePrincipal( ConnectorSecurityMap securityMap) { EisBackendPrincipal backendPrincipal = securityMap.getBackendPrincipal(); String userName = backendPrincipal.getUserName(); String password = backendPrincipal.getPassword(); return new ResourcePrincipal(userName, password); }
/** * notification of the end of XML parsing for this node */ public void postParsing() { if (getParentNode().getDescriptor() instanceof ResourceReferenceDescriptor) { ((ResourceReferenceDescriptor) getParentNode().getDescriptor()).setResourcePrincipal(new ResourcePrincipal(name, passwd)); } else { getParentNode().addDescriptor(new ResourcePrincipal(name, passwd)); } }
/** * notification of the end of XML parsing for this node */ public void postParsing() { if (getParentNode().getDescriptor() instanceof ResourceReferenceDescriptor) { ((ResourceReferenceDescriptor) getParentNode().getDescriptor()).setResourcePrincipal(new ResourcePrincipal(name, passwd)); } else { getParentNode().addDescriptor(new ResourcePrincipal(name, passwd)); } }
null : new ResourcePrincipal(user, passwd); con = (java.sql.Connection) getUnpooledConnection(poolInfo, prin, true); if (con == null) {
return new ResourcePrincipal(userName, password);
dbUser, dbPassword.toCharArray()); pc.setManagedConnectionFactory(fac); Principal prin = new ResourcePrincipal(dbUser, dbPassword); subject.getPrincipals().add(prin); subject.getPrivateCredentials().add(pc);
pc.setManagedConnectionFactory(mcfs[i]); Principal prin = new ResourcePrincipal(dbUser, dbPassword); subject.getPrincipals().add(prin); subject.getPrivateCredentials().add(pc); dbUser, dbPassword.toCharArray()); pc.setManagedConnectionFactory(mcf); Principal prin = new ResourcePrincipal(dbUser, dbPassword); subject.getPrincipals().add(prin); subject.getPrivateCredentials().add(pc);
return new ResourcePrincipal(userName, password);
drp = rr[i].getDefaultResourcePrincipal(); if (drp!=null) { rp = new ResourcePrincipal(drp.getName(), drp.getPassword()); resourceReference.setResourcePrincipal(rp);
DefaultResourcePrincipal drp = resourceRef.getDefaultResourcePrincipal(); if (drp!=null) { ResourcePrincipal rp = new ResourcePrincipal(drp.getName(), drp.getPassword()); rrd.setResourcePrincipal(rp);