private ArrayList<AuthenticationMechanism> processAuthenticationMechanism( javax.resource.spi.AuthenticationMechanism[] authMechanismAnnotations) { ArrayList<AuthenticationMechanism> authenticationMechanisms = null; if (authMechanismAnnotations != null) { authenticationMechanisms = new ArrayList<AuthenticationMechanism>(authMechanismAnnotations.length); for (javax.resource.spi.AuthenticationMechanism authMechanismAnnotation : authMechanismAnnotations) { ArrayList<LocalizedXsdString> descriptions = null; if (authMechanismAnnotation.description() != null && authMechanismAnnotation.description().length != 0) { descriptions = new ArrayList<LocalizedXsdString>(authMechanismAnnotation.description().length); for (String descriptionAnnoptation : authMechanismAnnotation.description()) { descriptions.add(new LocalizedXsdString(descriptionAnnoptation, null)); } } XsdString authenticationMechanismType = new XsdString(authMechanismAnnotation .authMechanism(), null); authenticationMechanisms.add(new AuthenticationMechanismImpl(descriptions, authenticationMechanismType, CredentialInterfaceEnum .valueOf(authMechanismAnnotation .credentialInterface() .name()), null, null)); } } return authenticationMechanisms; }
if (auths != null && auths.length > 0) { for (AuthenticationMechanism auth : auths) { String authMechString = auth.authMechanism(); int authMechInt = AuthMechanism.getAuthMechInt(authMechString); if (ddAuthMechanism.getAuthMechType().equals(auth.authMechanism())) { ignore = true; break;
for (final javax.resource.spi.AuthenticationMechanism am : authMechanisms) { final AuthenticationMechanism authMechanism = new AuthenticationMechanism(); authMechanism.setAuthenticationMechanismType(am.authMechanism()); authMechanism.setCredentialInterface(am.credentialInterface().toString()); authMechanism.setDescriptions(stringsToTexts(am.description()));
for (final javax.resource.spi.AuthenticationMechanism am : authMechanisms) { final AuthenticationMechanism authMechanism = new AuthenticationMechanism(); authMechanism.setAuthenticationMechanismType(am.authMechanism()); authMechanism.setCredentialInterface(am.credentialInterface().toString()); authMechanism.setDescriptions(stringsToTexts(am.description()));
int authMechanismValue = getAuthMechVal(authMechanism.authMechanism()); AuthenticationMechanism.CredentialInterface ci = authMechanism.credentialInterface(); String credentialInterface = ora.getCredentialInterfaceName(ci);