protected void authenticate() throws IOException, XMPPException { getSASLAuthentication().send(new AuthMechanism(NAME, ""));
/** * Add a AuthMechanism object with given auth mech value to the set * return value : false = found * true = not found */ public boolean addAuthMechanism(int mech) { boolean flag = false; for (Iterator itr = authMechanisms.iterator(); itr.hasNext();){ AuthMechanism next = (AuthMechanism) itr.next(); if (next.getAuthMechVal() == mech) return(flag); } String credInf = null; if (mech == PoolManagerConstants.BASIC_PASSWORD) { credInf = PoolManagerConstants.PASSWORD_CREDENTIAL; } else { credInf = PoolManagerConstants.GENERIC_CREDENTIAL; } AuthMechanism auth = new AuthMechanism("",mech, credInf); flag = this.authMechanisms.add(auth); return(flag); }
AuthMechanism auth = (AuthMechanism) authMechs.next(); 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());
for (AuthenticationMechanism auth : auths) { String authMechString = auth.authMechanism(); int authMechInt = AuthMechanism.getAuthMechInt(authMechString); if (ddAuthMechanism.getAuthMechType().equals(auth.authMechanism())) { ignore = true; break; description = auth.description()[0]; AuthMechanism authM = new AuthMechanism(description, authMechInt, credentialInterfaceName); ora.addAuthMechanism(authM);
buf.append("[Type : " + conf.getAuthMechType() + "], "); buf.append("[Interface : " + conf.getCredentialInterface() + "]"); buf.append("\n------------" );
/** * 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; } }
/** * Add a AuthMechanism object to the set return value : * false = found * true = not found */ public boolean addAuthMechanism(AuthMechanism mech) { boolean flag=false; for (Iterator itr = authMechanisms.iterator(); itr.hasNext();){ AuthMechanism next = (AuthMechanism) itr.next(); if (next.getAuthMechVal()==mech.getAuthMechVal()) { return(flag); } } flag=this.authMechanisms.add(mech); return(flag); }
AuthMechanism auth = (AuthMechanism) authMechs.next(); 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());
buf.append("[Type : " + conf.getAuthMechType() + "], "); buf.append("[Interface : " + conf.getCredentialInterface() + "]"); buf.append("\n------------" );
/** * Add a AuthMechanism object to the set return value : * false = found * true = not found */ public boolean addAuthMechanism(AuthMechanism mech) { boolean flag=false; for (Iterator itr = authMechanisms.iterator(); itr.hasNext();){ AuthMechanism next = (AuthMechanism) itr.next(); if (next.getAuthMechVal()==mech.getAuthMechVal()) { return(flag); } } flag=this.authMechanisms.add(mech); return(flag); }
getSASLAuthentication().send(new AuthMechanism(NAME, ""));
/** * Add a AuthMechanism object with given auth mech value to the set * return value : false = found * true = not found */ public boolean addAuthMechanism(int mech) { boolean flag = false; for (Iterator itr = authMechanisms.iterator(); itr.hasNext();){ AuthMechanism next = (AuthMechanism) itr.next(); if (next.getAuthMechVal() == mech) return(flag); } String credInf = null; if (mech == PoolManagerConstants.BASIC_PASSWORD) { credInf = PoolManagerConstants.PASSWORD_CREDENTIAL; } else { credInf = PoolManagerConstants.GENERIC_CREDENTIAL; } AuthMechanism auth = new AuthMechanism("",mech, credInf); flag = this.authMechanisms.add(auth); return(flag); }
/** * Remove a AuthMechanism object with given auth mech value from the set * return value : false = found * true = not found */ public boolean removeAuthMechanism(int mech) { boolean flag = false; for (Iterator itr = authMechanisms.iterator(); itr.hasNext();){ AuthMechanism next = (AuthMechanism) itr.next(); if (next.getAuthMechVal()==mech) { flag = this.authMechanisms.remove(next); return(flag); } } return(flag); }
getSASLAuthentication().send(new AuthMechanism(NAME, ""));
/** * Remove a AuthMechanism object with given auth mech value from the set * return value : false = found * true = not found */ public boolean removeAuthMechanism(int mech) { boolean flag = false; for (Iterator itr = authMechanisms.iterator(); itr.hasNext();){ AuthMechanism next = (AuthMechanism) itr.next(); if (next.getAuthMechVal()==mech) { flag = this.authMechanisms.remove(next); return(flag); } } return(flag); }
getSASLAuthentication().send(new AuthMechanism(NAME, ""));
getSASLAuthentication().send(new AuthMechanism(NAME, ""));
getSASLAuthentication().send(new AuthMechanism(NAME, ""));
getSASLAuthentication().send(new AuthMechanism(NAME, ""));
getSASLAuthentication().send(new AuthMechanism(NAME, ""));