|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.security.jps.service.policystore.ApplicationRole
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.
Instead of instantiating an ApplicationRole, query the ApplicationPolicy for the desired JpsApplicationRole. Use the resulting Principal as a parameter for methods such as
ApplicationPolicy.grant(Principal[], CodeSource, Permission[])ApplicationPolicy.revoke(Principal[], CodeSource, Permission[])To query the desired JpsApplicationRole, refer to the code snippet below.
JpsApplicationRole myRole;
// Obtain an application policy for the desired application.
ApplicationPolicy ap ;
....
String appRolename="myApplicationRole";
List <AppRoleEntry> appRoles = ap.searchAppRoles(appRoleName);
AppRoleEntry entry;
entry = appRoles.get(0);
myRole = entry.getApplicationRole();
public class ApplicationRole
An implementation of an Application Role.
| 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 |
|---|
public ApplicationRole(java.lang.String name)
name - the name of the app role
public ApplicationRole(java.lang.String appID,
java.lang.String name)
appID - current application idname - the name of the app role
public ApplicationRole(java.lang.String appID,
java.lang.String name,
java.lang.String description,
java.lang.String displayName,
java.lang.String guid)
appID - current application idname - the name of the app roledescription - the description of the app roledisplayName - the display name of the app roleguid - the guid of the app role
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)
name - the name of the app roleguid - the guid of the app roleuniqueName - the unique name of the app roledisplayName - the display name of the app roledesc - the description of the app roleappId - the app id of the app role| Method Detail |
|---|
public int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic java.lang.String getName()
getName in interface java.security.Principalpublic boolean equals(java.lang.Object o)
equals in interface java.security.Principalequals in class java.lang.Objectpublic java.lang.String getDescription()
getDescription in interface JpsPrincipalpublic java.lang.String getDisplayName()
getDisplayName in interface JpsPrincipalpublic JpsPrincipalType getPrincipalType()
getPrincipalType in interface JpsPrincipalpublic java.lang.String getGuid()
getGuid in interface JpsPrincipalpublic java.lang.String getUniqueName()
getUniqueName in interface JpsPrincipalpublic java.lang.String getAppID()
getAppID in interface JpsApplicationRolepublic java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||