|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-03 |
|||||||||
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 rolepublic ApplicationRole(java.lang.String appID, java.lang.String name)
appID
- current application idname
- the name of the app rolepublic 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 rolepublic 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 roleMethod Detail |
---|
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public java.lang.String getName()
getName
in interface java.security.Principal
public boolean equals(java.lang.Object o)
equals
in interface java.security.Principal
equals
in class java.lang.Object
public java.lang.String getDescription()
getDescription
in interface JpsPrincipal
public java.lang.String getDisplayName()
getDisplayName
in interface JpsPrincipal
public JpsPrincipalType getPrincipalType()
getPrincipalType
in interface JpsPrincipal
public java.lang.String getGuid()
getGuid
in interface JpsPrincipal
public java.lang.String getUniqueName()
getUniqueName
in interface JpsPrincipal
public java.lang.String getAppID()
getAppID
in interface JpsApplicationRole
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |