Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

opensaml::SAMLInternalConfig Class Reference

OFF More...

#include <saml/internal.h>

Inheritance diagram for opensaml::SAMLInternalConfig:

opensaml::SAMLConfig List of all members.

Public Member Functions

bool init (bool initXMLTooling=true)
 Initializes library.
void term (bool termXMLTooling=true)
 Shuts down library.
void generateRandomBytes (void *buf, unsigned int len)
 Generate random information using the underlying security library.
void generateRandomBytes (std::string &buf, unsigned int len)
 Generate random information using the underlying security library.
XMLCh * generateIdentifier ()
 Generate a valid XML identifier of the form _X{32} where X is a random hex character.
std::string hashSHA1 (const char *data, bool toHex=false)
 Generate the SHA-1 hash of a string.

Static Public Member Functions

SAMLInternalConfig & getInternalConfig ()

Detailed Description

OFF


Member Function Documentation

XMLCh* opensaml::SAMLInternalConfig::generateIdentifier (   )  [virtual]
 

Generate a valid XML identifier of the form _X{32} where X is a random hex character.

The caller is responsible for freeing the result.

Returns:
a valid null-terminated XML ID

Implements opensaml::SAMLConfig.

void opensaml::SAMLInternalConfig::generateRandomBytes (  std::string &  buf,
unsigned int  len
)  [virtual]
 

Generate random information using the underlying security library.

Parameters:
buf string buffer for the information
len number of bytes to write into buffer

Implements opensaml::SAMLConfig.

void opensaml::SAMLInternalConfig::generateRandomBytes (  void *  buf,
unsigned int  len
)  [virtual]
 

Generate random information using the underlying security library.

Parameters:
buf buffer for the information
len number of bytes to write into buffer

Implements opensaml::SAMLConfig.

std::string opensaml::SAMLInternalConfig::hashSHA1 (  const char *  data,
bool  toHex = false
)  [virtual]
 

Generate the SHA-1 hash of a string.

Parameters:
s NULL-terminated string to hash
toHex true iff the result should be encoded in hexadecimal form or left as raw bytes
Returns:
SHA-1 hash of the data

Implements opensaml::SAMLConfig.

bool opensaml::SAMLInternalConfig::init (  bool  initXMLTooling = true  )  [virtual]
 

Initializes library.

Each process using the library MUST call this function exactly once before using any library classes. The flag controls whether this is the "dominant" library or not and can allow the SAML library to be loaded as an extension of XMLTooling rather than subsuming it.

Parameters:
initXMLTooling true iff this method should initialize the XMLTooling layer
Returns:
true iff initialization was successful

Implements opensaml::SAMLConfig.

void opensaml::SAMLInternalConfig::term (  bool  termXMLTooling = true  )  [virtual]
 

Shuts down library.

Each process using the library SHOULD call this function exactly once before terminating itself. The flag controls whether this is the "dominant" library or not and can allow the SAML library to be loaded as an extension of XMLTooling rather than subsuming it.

Parameters:
termXMLTooling true iff this method should shutdown the XMLTooling layer

Implements opensaml::SAMLConfig.


The documentation for this class was generated from the following file:
Generated on Wed Jun 17 16:59:54 2009 for opensaml-2.2 by  doxygen 1.3.9.1