GridLab
Grid Application Toolkit

A simple API for Grid Applications
GAT

Menu



Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

security::SecurityContext Class Reference

A container for security Information. More...

Inheritance diagram for security::SecurityContext:

Inheritance graph
[legend]
Collaboration diagram for security::SecurityContext:

Collaboration graph
[legend]
List of all members.

Public Methods

 SecurityContext (String name)
 Creates a new security context.

 SecurityContext (String name, String type, Object object)
 Creates a new security context with a specific name, type and data object associated with it.

boolean equals (Object obj)
 Check two SecurityContexts for equality.

Object clone ()
 Returns a clone of this context.

void passwordAuthenticate (String username, String password)
 Makes this a "Password" type security context and stores the username and password in the context.

void certificateAuthenticate (URI keyfile, URI certificate)
 Makes this a "Certificate" type security context and stores the information about the location of keyfile and certificate file in the context.

void certificateAuthenticate (URI keyfile, URI certificate, String passphrase)
 Makes this a "Certificate" type security context and stores the information about the location of keyfile and certificate file in the context.

String getName ()
 Gets the name associated with the security context.

String getType ()
 Gets the type associated with the security context.

String getUsername ()
 Gets the username associated with the security context.

String getPassword ()
 Gets the type associated with the security context.

URI getKeyfile ()
 Gets the type associated with the security context.


Private Attributes

String name = null
 This member variables holds the name of the SecurityContext.

String type = null
 This member variables holds the type of the SecurityContext.

Object object = null
 This member variables holds the object of the SecurityContext.

String username = null
 This member variables holds the username of the SecurityContext.

String password = null
 This member variables holds the password of the SecurityContext.

URI keyfile = null
 This member variables holds the URI of the keyfile of the SecurityContext.

URI certificate = null
 This member variables holds the URI of the certificate of the SecurityContext.

String passphrase = null
 This member variables holds the passphrase of the SecurityContext.


Detailed Description

A container for security Information.

Each context has a name and a type, and a data object associated with it. The data object is opaque to the GAT API and is used and manipulated by adaptors based upon their interpretation of the type.

Currently we provide additional auxiliary methods to create a context based upon password information or upon credentials stored in a file. Contexts based upon these mechanisms can be used by adaptors to create further contexts containing opaque data objects, e.g. GSSAPI credentials.

Definition at line 17 of file SecurityContext.java.


Constructor & Destructor Documentation

security::SecurityContext::SecurityContext String    name [inline]
 

Creates a new security context.

Parameters:
name  A java.lang.String description

Definition at line 66 of file SecurityContext.java.

References security::SecurityContext::name.

security::SecurityContext::SecurityContext String    name,
String    type,
Object    object
[inline]
 

Creates a new security context with a specific name, type and data object associated with it.

Parameters:
name  A java.lang.String description
type  A java.lang.String description
object  An Object associated with this data

Definition at line 78 of file SecurityContext.java.

References security::SecurityContext::name, security::SecurityContext::object, and security::SecurityContext::type.


Member Function Documentation

boolean security::SecurityContext::equals Object    obj [inline]
 

Check two SecurityContexts for equality.

Definition at line 87 of file SecurityContext.java.

References security::SecurityContext::name, and security::SecurityContext::type.

Object security::SecurityContext::clone   [inline]
 

Returns a clone of this context.

Definition at line 98 of file SecurityContext.java.

void security::SecurityContext::passwordAuthenticate String    username,
String    password
[inline]
 

Makes this a "Password" type security context and stores the username and password in the context.

Parameters:
username  A username, a java.lang.String, associated with password.
password  A password, a java.lang.String.

Definition at line 110 of file SecurityContext.java.

References security::SecurityContext::password, and security::SecurityContext::username.

void security::SecurityContext::certificateAuthenticate URI    keyfile,
URI    certificate
[inline]
 

Makes this a "Certificate" type security context and stores the information about the location of keyfile and certificate file in the context.

Parameters:
keyfile  The URI of keyfile
certificate  The URI of certificate file

Definition at line 123 of file SecurityContext.java.

References security::SecurityContext::certificate, and security::SecurityContext::keyfile.

void security::SecurityContext::certificateAuthenticate URI    keyfile,
URI    certificate,
String    passphrase
[inline]
 

Makes this a "Certificate" type security context and stores the information about the location of keyfile and certificate file in the context.

Parameters:
keyfile  The URI of keyfile
certificate  The URI of certificate file
passphrase  The passphrase a java.lang.String

Definition at line 137 of file SecurityContext.java.

References security::SecurityContext::certificate, security::SecurityContext::keyfile, and security::SecurityContext::passphrase.

String security::SecurityContext::getName   [inline]
 

Gets the name associated with the security context.

Returns:
The name, a java.lang.String, associated with the context.

Definition at line 148 of file SecurityContext.java.

References security::SecurityContext::name.

String security::SecurityContext::getType   [inline]
 

Gets the type associated with the security context.

Returns:
The type associated with the context, a java.lang.String

Definition at line 157 of file SecurityContext.java.

References security::SecurityContext::type.

String security::SecurityContext::getUsername   [inline]
 

Gets the username associated with the security context.

Returns:
The type associated with the context, a java.lang.String

Definition at line 166 of file SecurityContext.java.

References security::SecurityContext::username.

String security::SecurityContext::getPassword   [inline]
 

Gets the type associated with the security context.

Returns:
The password associated with the context, a java.lang.String

Definition at line 175 of file SecurityContext.java.

References security::SecurityContext::password.

URI security::SecurityContext::getKeyfile   [inline]
 

Gets the type associated with the security context.

Returns:
The location of the keyfile associated with the context.

Definition at line 184 of file SecurityContext.java.

References security::SecurityContext::keyfile.


Member Data Documentation

String security::SecurityContext::name = null [private]
 

This member variables holds the name of the SecurityContext.

Definition at line 21 of file SecurityContext.java.

Referenced by security::SecurityContext::equals(), security::SecurityContext::getName(), and security::SecurityContext::SecurityContext().

String security::SecurityContext::type = null [private]
 

This member variables holds the type of the SecurityContext.

Definition at line 26 of file SecurityContext.java.

Referenced by security::SecurityContext::equals(), security::SecurityContext::getType(), and security::SecurityContext::SecurityContext().

Object security::SecurityContext::object = null [private]
 

This member variables holds the object of the SecurityContext.

Definition at line 31 of file SecurityContext.java.

Referenced by security::SecurityContext::SecurityContext().

String security::SecurityContext::username = null [private]
 

This member variables holds the username of the SecurityContext.

Definition at line 36 of file SecurityContext.java.

Referenced by security::SecurityContext::getUsername(), and security::SecurityContext::passwordAuthenticate().

String security::SecurityContext::password = null [private]
 

This member variables holds the password of the SecurityContext.

Definition at line 41 of file SecurityContext.java.

Referenced by security::SecurityContext::getPassword(), and security::SecurityContext::passwordAuthenticate().

URI security::SecurityContext::keyfile = null [private]
 

This member variables holds the URI of the keyfile of the SecurityContext.

Definition at line 47 of file SecurityContext.java.

Referenced by security::SecurityContext::certificateAuthenticate(), and security::SecurityContext::getKeyfile().

URI security::SecurityContext::certificate = null [private]
 

This member variables holds the URI of the certificate of the SecurityContext.

Definition at line 53 of file SecurityContext.java.

Referenced by security::SecurityContext::certificateAuthenticate().

String security::SecurityContext::passphrase = null [private]
 

This member variables holds the passphrase of the SecurityContext.

Definition at line 58 of file SecurityContext.java.

Referenced by security::SecurityContext::certificateAuthenticate().


The documentation for this class was generated from the following file: