@XmlElement(name = "authentication-mechanism") public List<AuthenticationMechanism> getAuthenticationMechanism() { return getOutboundResourceAdapter().getAuthenticationMechanism(); }
public static ResourceAdapter newResourceAdapter(final ResourceAdapter10 source) { final ResourceAdapter resourceAdapter = new ResourceAdapter(); resourceAdapter.getSecurityPermission().addAll(source.getSecurityPermission()); resourceAdapter.setId(source.getId()); final OutboundResourceAdapter outboundResourceAdapter = new OutboundResourceAdapter(); outboundResourceAdapter.getAuthenticationMechanism().addAll(source.getAuthenticationMechanism()); outboundResourceAdapter.setTransactionSupport(source.getTransactionSupport()); outboundResourceAdapter.setReauthenticationSupport(source.isReauthenticationSupport()); outboundResourceAdapter.getConnectionDefinition().add(source.getConnectionDefinition()); resourceAdapter.setOutboundResourceAdapter(outboundResourceAdapter); return resourceAdapter; }
public static ResourceAdapter newResourceAdapter(final ResourceAdapter10 source) { final ResourceAdapter resourceAdapter = new ResourceAdapter(); resourceAdapter.getSecurityPermission().addAll(source.getSecurityPermission()); resourceAdapter.setId(source.getId()); final OutboundResourceAdapter outboundResourceAdapter = new OutboundResourceAdapter(); outboundResourceAdapter.getAuthenticationMechanism().addAll(source.getAuthenticationMechanism()); outboundResourceAdapter.setTransactionSupport(source.getTransactionSupport()); outboundResourceAdapter.setReauthenticationSupport(source.isReauthenticationSupport()); outboundResourceAdapter.getConnectionDefinition().add(source.getConnectionDefinition()); resourceAdapter.setOutboundResourceAdapter(outboundResourceAdapter); return resourceAdapter; }
final List<AuthenticationMechanism> authenticationMechanisms = outboundResourceAdapter.getAuthenticationMechanism(); final javax.resource.spi.AuthenticationMechanism[] authMechanisms = connectorAnnotation.authMechanisms(); if (authenticationMechanisms.size() == 0) {
final List<AuthenticationMechanism> authenticationMechanisms = outboundResourceAdapter.getAuthenticationMechanism(); final javax.resource.spi.AuthenticationMechanism[] authMechanisms = connectorAnnotation.authMechanisms(); if (authenticationMechanisms.size() == 0) {