Oracle Entitlements Server for Java API Reference

com.bea.security
Class ServiceType

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

public class ServiceType
extends java.lang.Object

This class represents a service type. Service type indicates what type of service is available. The ServiceType class represents, to the application and to the security runtime, a service that is offered for use. Five well-known service types are supported by this class to facilitate their use in your security runtime applications: Audit, Authentication, Authorization, Credential, and Role. However, you may expand the service types beyond the knowledge of the ServiceType class and used them with security runtime applications. The service type IDs are keyed by integers 0-5, where the integer 0 represents an invalid type.

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

Field Summary
static ServiceType AUDIT
          Auditing Service Type ID = 5.
static ServiceType AUTHENTICATION
          Authentication Service Type ID = 1.
static ServiceType AUTHORIZATION
          Authorization Service Type ID = 2.
static ServiceType CREDENTIAL
          Credential Mapper Service Type ID = 3.
static ServiceType INVALID
          INVALID Service Type ID = 0.
static ServiceType ROLE
          Role Mapper Service Type ID = 4.
 
Constructor Summary
ServiceType(int typecode)
          Constructs a service type with a specific service code.
 
Method Summary
 boolean equals(java.lang.Object another)
          Determines if this type is the same as another
 int hashCode()
          Returns the service code as the object hash.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID

public static final ServiceType INVALID
INVALID Service Type ID = 0.

AUTHENTICATION

public static final ServiceType AUTHENTICATION
Authentication Service Type ID = 1.

AUTHORIZATION

public static final ServiceType AUTHORIZATION
Authorization Service Type ID = 2.

CREDENTIAL

public static final ServiceType CREDENTIAL
Credential Mapper Service Type ID = 3.

ROLE

public static final ServiceType ROLE
Role Mapper Service Type ID = 4.

AUDIT

public static final ServiceType AUDIT
Auditing Service Type ID = 5.
Constructor Detail

ServiceType

public ServiceType(int typecode)
Constructs a service type with a specific service code.
Method Detail

hashCode

public int hashCode()
Returns the service code as the object hash. All codes that are equal indicate services that are equal.

Returns:
an int representing this service type.
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object another)
Determines if this type is the same as another

Returns:
true if it is the same; otherwise, returns false.
Overrides:
equals in class java.lang.Object