Oracle Entitlements Server for Java API Reference

com.bea.security
Class PolicyDomain

java.lang.Object
  |
  +--com.bea.security.PolicyDomain

public class PolicyDomain
extends java.lang.Object

A policy domain is a collection of elements and security services over which a common and consistent set of policies are administered in a coordinated fashion. The PolicyDomain class organizes these services making them available in a central place. PolicyDomain objects are fetched from the SecurityRuntime object.

Author:
Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.

Method Summary
 java.lang.String getName()
          Gets the policy domain's name.
 PublicSecurityService getService(ServiceType servicetype)
          Creates a PublicSecurityService of the requested type relevant to the policy domain provided.
 java.util.Vector getServiceTypes()
          Lists the service types offered by this policy domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Gets the policy domain's name.

Returns:
this policy domain's name as a String.

getService

public PublicSecurityService getService(ServiceType servicetype)
                                 throws ServiceNotAvailableException
Creates a PublicSecurityService of the requested type relevant to the policy domain provided.

Parameters:
servicetype - a ServiceType that indicates which security service is being requested.
Returns:
a PublicSecurityService that provides the service type requested.
Throws:
ServiceNotAvailableException - This exception is thrown if a service is requested that the security runtime does not provide.

getServiceTypes

public java.util.Vector getServiceTypes()
Lists the service types offered by this policy domain.

Returns:
a Vector of ServiceTypes offered by this policy domain.