public SmAuthStatus query(String parameter,String secret,SmAuthQueryCode request,SmAuthQueryResponse response){
  if (null == response) {
    return SmAuthStatus.SMAUTH_FAILURE;
  }
  if (SmAuthQueryCode.SMAUTH_QUERY_DESCRIPTION == request) {
    response.setResponseBuffer(SCHEME_DESCRIPTION);
    response.setResponseCode(SCHEME_VERSION);
  }
 else   if (SmAuthQueryCode.SMAUTH_QUERY_CREDENTIALS_REQ == request) {
    response.setResponseCode(SmAuthQueryResponse.SMAUTH_CRED_BASIC);
  }
 else {
    return SmAuthStatus.SMAUTH_FAILURE;
  }
  return SmAuthStatus.SMAUTH_SUCCESS;
}

public SmAuthStatus query ( String parameter , String secret , SmAuthQueryCode request , SmAuthQueryResponse response ) { if ( null == response ) { return SmAuthStatus . SMAUTH_FAILURE ; } if ( SmAuthQueryCode . SMAUTH_QUERY_DESCRIPTION == request ) { response . setResponseBuffer ( SCHEME_DESCRIPTION ) ; response . setResponseCode ( SCHEME_VERSION ) ; } else if ( SmAuthQueryCode . SMAUTH_QUERY_CREDENTIALS_REQ == request ) { response . setResponseCode ( SmAuthQueryResponse . SMAUTH_CRED_BASIC ) ; } else { return SmAuthStatus . SMAUTH_FAILURE ; } return SmAuthStatus . SMAUTH_SUCCESS ; }
returns information about the authentication scheme .
