Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


oracle.security.jps.service.policystore.info
Class BasicPrincipalEntry

java.lang.Object
  extended by oracle.security.jps.service.policystore.info.BasicPrincipalEntry

All Implemented Interfaces:
PrincipalEntry
Direct Known Subclasses:
AnonymousRoleEntry, AuthenticatedRoleEntry

public class BasicPrincipalEntry
extends java.lang.Object
implements PrincipalEntry

A class to hold an in-memory principal object. For example,

 PrincipalEntry principal = new BasicPrincipalEntry("weblogic.security.principal.WLSUserImpl", "John");
 

Constructor Summary
BasicPrincipalEntry(java.lang.String className, java.lang.String name)
          Constructor

 

Method Summary
 boolean equals(java.lang.Object that)
           
 java.lang.String getAppID()
          Returns the application name if set.
 java.lang.String getClassName()
          Returns the Class Name that implements the Principal.
 java.lang.String getDescription()
          Returns the description of the Principal if available.
 java.lang.String getDisplayName()
          Returns the display name of the Principal if available.
 java.lang.String getGuid()
          Returns the guid of the Principal if available.
 java.lang.String getGUID()
          Returns the guid of he Principal if available.
 java.lang.String getName()
          Returns the name of the Principal if available.
 java.security.Principal getPrincipal()
          Returns the underlying Principal representing this object.
 java.lang.String getPrincipalName()
          Returns the name of the Principal.
 java.lang.String getType()
          Returns the type of the Principal.
 java.lang.String getUniqueName()
          Returns the unique name of the Principal if available.
 int hashCode()
           
 java.lang.String toString()
           

 

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

 

Constructor Detail

BasicPrincipalEntry

public BasicPrincipalEntry(java.lang.String className,
                           java.lang.String name)
Constructor
Parameters:
className - principal class name, e.g. weblogic.security.principal.WLSUserImpl. Cannot be oracle.security.jps.service.policystore.ApplicationRole. Please use AppRoleEntry instead if you want to have an object for application role.
name - principal name

Method Detail

getAppID

public java.lang.String getAppID()
Returns the application name if set.
Specified by:
getAppID in interface PrincipalEntry
Returns:
app name.

getClassName

public java.lang.String getClassName()
Returns the Class Name that implements the Principal.
Specified by:
getClassName in interface PrincipalEntry
Returns:
the name of the class implementing the principal.

getGuid

public java.lang.String getGuid()
Returns the guid of the Principal if available.

getPrincipal

public java.security.Principal getPrincipal()
Returns the underlying Principal representing this object.
Specified by:
getPrincipal in interface PrincipalEntry
Returns:
the underlying Principal object.

getPrincipalName

public java.lang.String getPrincipalName()
Returns the name of the Principal.

getType

public java.lang.String getType()
Returns the type of the Principal.
Specified by:
getType in interface PrincipalEntry
Returns:
the principal type.

getDescription

public java.lang.String getDescription()
Returns the description of the Principal if available.
Specified by:
getDescription in interface PrincipalEntry

getDisplayName

public java.lang.String getDisplayName()
Returns the display name of the Principal if available.
Specified by:
getDisplayName in interface PrincipalEntry

getGUID

public java.lang.String getGUID()
Returns the guid of he Principal if available.
Specified by:
getGUID in interface PrincipalEntry
Returns:
Globally unique ID of the entity if it exists.

getName

public java.lang.String getName()
Returns the name of the Principal if available.
Specified by:
getName in interface PrincipalEntry
Returns:
the name of the entry.

getUniqueName

public java.lang.String getUniqueName()
Returns the unique name of the Principal if available.
Specified by:
getUniqueName in interface PrincipalEntry
Returns:
unique name.

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


Copyright © 2011, Oracle. All rights reserved.