Node authNode = appendChild(parent, ConnectorTagNames.AUTH_MECHANISM); appendTextChild(authNode, TagNames.DESCRIPTION, auth.getDescription()); appendTextChild(authNode, ConnectorTagNames.AUTH_MECH_TYPE, auth.getAuthMechType()); appendTextChild(authNode, ConnectorTagNames.CREDENTIAL_INTF, auth.getCredentialInterface());
Node authNode = appendChild(parent, ConnectorTagNames.AUTH_MECHANISM); appendTextChild(authNode, TagNames.DESCRIPTION, auth.getDescription()); appendTextChild(authNode, ConnectorTagNames.AUTH_MECH_TYPE, auth.getAuthMechType()); appendTextChild(authNode, ConnectorTagNames.CREDENTIAL_INTF, auth.getCredentialInterface());
/** * 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; } }
buf.append("[Type : " + conf.getAuthMechType() + "], "); buf.append("[Interface : " + conf.getCredentialInterface() + "]");
buf.append("[Type : " + conf.getAuthMechType() + "], "); buf.append("[Interface : " + conf.getCredentialInterface() + "]");
if (ddAuthMechanism.getAuthMechType().equals(auth.authMechanism())) { ignore = true; break;