com.ibm.wsspi.security.context

Class Domain

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.security.context.Domain
All implemented interfaces:
java.io.Serializable

  1. public class Domain
  2. extends java.lang.Object
  3. implements java.io.Serializable
An abstraction of the security domain obtained from the thread of execution.

In the AdminAgent the domain is the profile id string.

In non-AdminAgent servers the domain consists of two strings - an application name and an application type.

Version:
v7.0
See Also:
Serialized Form

Constructor Summary

Constructor and Description
Domain()

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getApplicationName()
Get the application name
  1. java.lang.String
getApplicationType()
Get the application type
  1. java.lang.String
getProfileId()
Get the AdminAgent profile id for this domain context.
  1. void
setApplication(java.lang.String name,java.lang.String type)
Set the application name and type The app name and type will determine the security configuration to use
  1. void
setApplicationName(java.lang.String name)
Set the application name The app name and type will determine the security configuration to use
  1. void
setApplicationType(java.lang.String type)
Set the application type The app name and type will determine the security configuration to use
  1. void
setProfileId(java.lang.String profileId)
Set an AdminAgent profile id In the AdminAgent the profile id determines which profile's config to use
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

Domain

  1. public Domain()

Method Detail

setApplication

  1. public void setApplication(java.lang.String name,
  2. java.lang.String type)
Set the application name and type

The app name and type will determine the security configuration to use

Parameters:
name - the application name
type - the application type

setApplicationName

  1. public void setApplicationName( java.lang.String name)
Set the application name

The app name and type will determine the security configuration to use

Parameters:
name - the application name

setApplicationType

  1. public void setApplicationType( java.lang.String type)
Set the application type

The app name and type will determine the security configuration to use

Parameters:
type - the application type

setProfileId

  1. public void setProfileId(java.lang.String profileId)
Set an AdminAgent profile id

In the AdminAgent the profile id determines which profile's config to use

Parameters:
profileId - the profile id

getApplicationName

  1. public java.lang.String getApplicationName( )
Get the application name
Returns:
the application name

getApplicationType

  1. public java.lang.String getApplicationType( )
Get the application type
Returns:
the application type

getProfileId

  1. public java.lang.String getProfileId( )
Get the AdminAgent profile id for this domain context.

If this context is not an AdminAgent context returns null.

Returns:
the application type