authMechs = ((ConnectorDescriptor)descriptor).getAuthMechanisms().iterator(); } else if (descriptor instanceof OutboundResourceAdapter) { authMechs = ((OutboundResourceAdapter)descriptor).getAuthMechanisms().iterator();
authMechs = ((ConnectorDescriptor)descriptor).getAuthMechanisms().iterator(); } else if (descriptor instanceof OutboundResourceAdapter) { authMechs = ((OutboundResourceAdapter)descriptor).getAuthMechanisms().iterator();
/** * Obtain the authentication service associated with rar module. * Currently only the BasicPassword authentication is supported. * * @param rarName Rar module Name * @param poolInfo Name of the pool. Used for creation of * BasicPasswordAuthenticationService * @return AuthenticationService */ public AuthenticationService getAuthenticationService(String rarName, PoolInfo poolInfo) { ConnectorDescriptor cd = _registry.getDescriptor(rarName); OutboundResourceAdapter obra = cd.getOutboundResourceAdapter(); Set authMechs = obra.getAuthMechanisms(); for (Object authMech : authMechs) { AuthMechanism authMechanism = (AuthMechanism) authMech; String mech = authMechanism.getAuthMechType(); if (mech.equals("BasicPassword")) { return new BasicPasswordAuthenticationService(rarName, poolInfo); } } return null; } }
for (Iterator i = this.outboundRA.getAuthMechanisms().iterator(); i.hasNext();)
for (Iterator i = this.outboundRA.getAuthMechanisms().iterator(); i.hasNext();)
Set ddAuthMechanisms = ora.getAuthMechanisms();