public static final Authentication create(String authPluginClassName,String authParamsString) throws UnsupportedAuthenticationException {
  Map<String,String> authParams=new HashMap<String,String>();
  if (isNotBlank(authParamsString)) {
    String[] params=authParamsString.split(",");
    for (    String p : params) {
      String[] kv=p.split(":");
      if (kv.length == 2) {
        authParams.put(kv[0],kv[1]);
      }
    }
  }
  return AuthenticationFactory.create(authPluginClassName,authParams);
}

public static final Authentication create ( String authPluginClassName , String authParamsString ) throws UnsupportedAuthenticationException { Map < String , String > authParams = new HashMap < String , String > ( ) ; if ( isNotBlank ( authParamsString ) ) { String [ ] params = authParamsString . split ( "," ) ; for ( String p : params ) { String [ ] kv = p . split ( ":" ) ; if ( kv . length == 2 ) { authParams . put ( kv [ 0 ] , kv [ 1 ] ) ; } } } return AuthenticationFactory . create ( authPluginClassName , authParams ) ; }
create an instance of the authentication - plugin
