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.info
Interface PrincipalEntry

All Superinterfaces:
GenericEntry
All Known Subinterfaces:
AppRoleEntry, RoleMemberEntry

public interface PrincipalEntry
extends GenericEntry

A representation of a principal in the policystore.

To create an in-memory representation of PrincipalEntry use InfoFactory.newPrincipalEntry(String, String).


Method Summary
 java.lang.String getAppID()
          Returns the name of the application to which the principal is scoped to.
 java.lang.String getClassName()
          Return the name of the class implementing the principal.
 java.lang.String getGuid()
          Returns the GUID (if any) associated with this principal.
 java.security.Principal getPrincipal()
          Return the underlying Java Principal object.
 java.lang.String getPrincipalName()
          Returns the name of the principal.
 java.lang.String getType()
          Return the type of the Principal.
 java.lang.String getUniqueName()
          Returns the name of the principal that uniquely identifies the principal in its underlying policy or identity store (i.e.

 

Methods inherited from interface oracle.security.jps.service.policystore.info.GenericEntry
accepts, getParent, setParent

 

Method Detail

getType

java.lang.String getType()
Return the type of the Principal.

If the principal is a JpsPrincipalType, then the value returned is the toString() value of the PrincipalType defined by JpsPrincipalType.

For a principal entry representing a custom principal (i.e. not a JpsPrincipalType), then a null string must be returned.

Returns:
the principal type.

getClassName

java.lang.String getClassName()
Return the name of the class implementing the principal.
Returns:
the name of the class implementing the principal.

getPrincipalName

java.lang.String getPrincipalName()
Returns the name of the principal.
Returns:
the name of the principal.

getPrincipal

java.security.Principal getPrincipal()
Return the underlying Java Principal object.
Returns:
the underlying Principal object.

getUniqueName

java.lang.String getUniqueName()
Returns the name of the principal that uniquely identifies the principal in its underlying policy or identity store (i.e. whereever the principal is defined).
Returns:
unique name.

getAppID

java.lang.String getAppID()
Returns the name of the application to which the principal is scoped to. This is an optional attribute and all principals may not have this value set.
Returns:
app name.

getGuid

java.lang.String getGuid()
Returns the GUID (if any) associated with this principal. The GUID is an immutable reference to the principal.
Returns:
guid

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.