Skip navigation links

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

E14651-06


oracle.security.jps.mas.mgmt.jmx.policy
Class PortablePrincipal

java.lang.Object
  extended by oracle.security.jps.mas.mgmt.jmx.policy.PortablePrincipal

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PortableApplicationRole, PortableRoleMember

public class PortablePrincipal
extends java.lang.Object
implements java.io.Serializable

Class to make a Principal Seriablizable.

See Also:
Serialized Form

Nested Class Summary
static class PortablePrincipal.PrincipalType
          Enum which holds the different types of a Principal.

 

Constructor Summary
PortablePrincipal(java.lang.String principalClzName, java.lang.String principalName, PortablePrincipal.PrincipalType type)
          Constructor.

 

Method Summary
 boolean equals(java.lang.Object that)
           
static PortablePrincipal from(javax.management.openmbean.CompositeData cd)
          Create an instance of the model specific class out of an associated CompositeData instance.
 java.lang.String getPrincipalClassName()
          Getter method to return the Principal Class name.
 java.lang.String getPrincipalName()
          Gets the Name of the Principal.
 PortablePrincipal.PrincipalType getType()
          Getter method for the Type of the principal.
 javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
          Convert an instance of this model specific type to a CompositeData.
static javax.management.openmbean.CompositeType toCompositeType()
          Returns the CompositeType that describes this model specific class.
 java.lang.String toString()
           

 

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

 

Constructor Detail

PortablePrincipal

@ConstructorProperties(value={"principalClazName","principalName","type"})
public PortablePrincipal(java.lang.String principalClzName,
                                               java.lang.String principalName,
                                               PortablePrincipal.PrincipalType type)
Constructor.
Parameters:
principalClzName - Class Name of the Principal
principalName - Name of the Principal
type - Type of Principal

Method Detail

getPrincipalName

public java.lang.String getPrincipalName()
Gets the Name of the Principal.
Returns:
String Name of Principal

getType

public PortablePrincipal.PrincipalType getType()
Getter method for the Type of the principal.
Returns:
PrincipalType which represents the Type

getPrincipalClassName

public java.lang.String getPrincipalClassName()
Getter method to return the Principal Class name.
Returns:
String Class Name of the Principal

toString

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

toCompositeType

public static javax.management.openmbean.CompositeType toCompositeType()
Returns the CompositeType that describes this model specific class.
Returns:
CompositeType assiciated with this class.

toCompositeData

public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
Convert an instance of this model specific type to a CompositeData. This ensure that clients that do not have access to the model specific class can still use the MBean.
Parameters:
ct - - This parameter is there only for future compatibility reasons with JDK 6.0. It can be ignored at this point.
Returns:
CompositeData which represents this class

from

public static PortablePrincipal from(javax.management.openmbean.CompositeData cd)
Create an instance of the model specific class out of an associated CompositeData instance.
Parameters:
cd - Composite Data which has information regarding the object
Returns:
Object of this specific class got after retrieving information from the Composite Data

equals

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

Skip navigation links

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

E14651-06


Copyright © 2013 Oracle. All rights reserved.