Back to index

nordugrid-arc-nox  1.1.0~rc6
Namespaces | Defines | Functions
UsernameToken.cpp File Reference
#include <stdlib.h>
#include <sys/time.h>
#include <string>
#include <sstream>
#include <fstream>
#include <iostream>
#include <openssl/evp.h>
#include <openssl/sha.h>
#include <openssl/rand.h>
#include <arc/DateTime.h>
#include <arc/Base64.h>
#include <arc/StringConv.h>
#include "UsernameToken.h"

Go to the source code of this file.

Namespaces

namespace  Arc
 ARCJSDLParser The ARCJSDLParser class, derived from the JobDescriptionParser class, is primarily a job description parser for the consolidated job description language (ARCJSDL), derived from JSDL, described in the following document http://svn.nordugrid.org/trac/nordugrid/browser/arc1/trunk/doc/tech_doc/client/job_description.odt.

Defines

#define WSSE_NAMESPACE   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
#define WSSE11_NAMESPACE   "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
#define WSU_NAMESPACE   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
#define USERNAMETOKEN_BASE_URL   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0"
#define USENAME_TOKEN   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken"
#define PASSWORD_TEXT   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"
#define PASSWORD_DIGEST   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"
#define PASS_MIN_LENGTH   4

Functions

static bool Arc::get_password (std::string &password, bool verify)
static bool Arc::get_username (std::string &user)
static std::string Arc::get_password_from_file (std::istream &f, const std::string &username)
static XMLNode Arc::get_node (XMLNode &parent, const char *name)
 Generate a new child XMLNode with specified name.
static std::string Arc::get_nonce ()
static std::string Arc::get_salt (bool mac)
static std::string Arc::digest_password (const std::string &nonce, const std::string &created, const std::string &passwd)
static std::string Arc::generate_derivedkey (const std::string &password, const std::string &salt, int iteration)

Define Documentation

#define PASS_MIN_LENGTH   4

Definition at line 40 of file UsernameToken.cpp.

#define PASSWORD_DIGEST   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"

Definition at line 38 of file UsernameToken.cpp.

#define PASSWORD_TEXT   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"

Definition at line 37 of file UsernameToken.cpp.

#define USENAME_TOKEN   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken"

Definition at line 36 of file UsernameToken.cpp.

#define USERNAMETOKEN_BASE_URL   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0"

Definition at line 35 of file UsernameToken.cpp.

#define WSSE11_NAMESPACE   "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"

Definition at line 32 of file UsernameToken.cpp.

#define WSSE_NAMESPACE   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"

Definition at line 31 of file UsernameToken.cpp.

#define WSU_NAMESPACE   "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"

Definition at line 33 of file UsernameToken.cpp.