Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-03


oracle.security.jps.service.policystore
Class ApplicationRole

java.lang.Object
  extended by oracle.security.jps.service.policystore.ApplicationRole

All Implemented Interfaces:
java.io.Serializable, java.security.Principal, JpsApplicationRole, JpsPrincipal, JpsRole

Deprecated. FOR JPS INTERNAL USE ONLY.

This class will be removed from the JPS public APIs. Customers are advised to modify their code to in order to obtain a reference to an ApplicationRole. <p/> <p/> Instead of instantiating an ApplicationRole, query the ApplicationPolicy for the desired JpsApplicationRole. Use the resulting Principal as a parameter for methods such as

  1. ApplicationPolicy.grant(Principal[], CodeSource, Permission[])
  2. ApplicationPolicy.revoke(Principal[], CodeSource, Permission[])

<p/>

To query the desired JpsApplicationRole, refer to the code snippet below. <p/>

                  JpsApplicationRole myRole;
                  // Obtain an application policy for the desired application.
                  ApplicationPolicy ap ;
                  ....
                  String appRolename="myApplicationRole";
             <p/>
                  List <AppRoleEntry> appRoles = ap.searchAppRoles(appRoleName);
                  AppRoleEntry entry;
                  entry = appRoles.get(0);
                  myRole = entry.getApplicationRole();
             
public class ApplicationRole
extends java.lang.Object
implements JpsApplicationRole, java.io.Serializable

An implementation of an Application Role.

See Also:
Serialized Form

Constructor Summary
ApplicationRole(java.lang.String name)
          Deprecated. This constructor should not be used.
ApplicationRole(java.lang.String appID, java.lang.String name)
          Deprecated. FOR JPS_INTERNAL USE ONLY.
ApplicationRole(java.lang.String appID, java.lang.String name, java.lang.String description, java.lang.String displayName, java.lang.String guid)
          Deprecated. FOR JPS_INTERNAL USE ONLY.
ApplicationRole(java.lang.String name, java.lang.String guid, java.lang.String uniqueName, java.lang.String displayName, java.lang.String desc, java.lang.String appId)
          Deprecated. For JPS-INTERNAL USE ONLY. Will be removed.

 

Method Summary
 boolean equals(java.lang.Object o)
          Deprecated.  
 java.lang.String getAppID()
          Deprecated. Returns the name of the application the application role is scoped to.
 java.lang.String getDescription()
          Deprecated.  
 java.lang.String getDisplayName()
          Deprecated.  
 java.lang.String getGuid()
          Deprecated.  
 java.lang.String getName()
          Deprecated. Returns the name of this principal.
 JpsPrincipalType getPrincipalType()
          Deprecated. Returns the JPS Principal Type.
 java.lang.String getUniqueName()
          Deprecated.  
 int hashCode()
          Deprecated.  
 java.lang.String toString()
          Deprecated.  

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ApplicationRole

public ApplicationRole(java.lang.String name)
Deprecated. 
This constructor should not be used. Though is there since the default must have this flavor.
Parameters:
name - the name of the app role

ApplicationRole

public ApplicationRole(java.lang.String appID,
                       java.lang.String name)
Deprecated. FOR JPS_INTERNAL USE ONLY.
Parameters:
appID - current application id
name - the name of the app role

ApplicationRole

public ApplicationRole(java.lang.String appID,
                       java.lang.String name,
                       java.lang.String description,
                       java.lang.String displayName,
                       java.lang.String guid)
Deprecated. FOR JPS_INTERNAL USE ONLY.
Conststructs and application role.
Parameters:
appID - current application id
name - the name of the app role
description - the description of the app role
displayName - the display name of the app role
guid - the guid of the app role

ApplicationRole

public ApplicationRole(java.lang.String name,
                       java.lang.String guid,
                       java.lang.String uniqueName,
                       java.lang.String displayName,
                       java.lang.String desc,
                       java.lang.String appId)
Deprecated. For JPS-INTERNAL USE ONLY. Will be removed.
Constructs an application role.
Parameters:
name - the name of the app role
guid - the guid of the app role
uniqueName - the unique name of the app role
displayName - the display name of the app role
desc - the description of the app role
appId - the app id of the app role

Method Detail

hashCode

public int hashCode()
Deprecated. 
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object

getName

public java.lang.String getName()
Deprecated. 
Returns the name of this principal.
Specified by:
getName in interface java.security.Principal
Returns:
the name of this principal.

equals

public boolean equals(java.lang.Object o)
Deprecated. 
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object

getDescription

public java.lang.String getDescription()
Deprecated. 
Specified by:
getDescription in interface JpsPrincipal

getDisplayName

public java.lang.String getDisplayName()
Deprecated. 
Specified by:
getDisplayName in interface JpsPrincipal

getPrincipalType

public JpsPrincipalType getPrincipalType()
Deprecated. 
Returns the JPS Principal Type.
Specified by:
getPrincipalType in interface JpsPrincipal
Returns:
JPS Prinicpal Type.

getGuid

public java.lang.String getGuid()
Deprecated. 
Specified by:
getGuid in interface JpsPrincipal

getUniqueName

public java.lang.String getUniqueName()
Deprecated. 
Specified by:
getUniqueName in interface JpsPrincipal

getAppID

public java.lang.String getAppID()
Deprecated. 
Returns the name of the application the application role is scoped to.
Specified by:
getAppID in interface JpsApplicationRole
Returns:
name of the application.

toString

public java.lang.String toString()
Deprecated. 
Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-03


Copyright © 2010, Oracle. All rights reserved.