public class PortablePrincipal
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
PortablePrincipal.PrincipalType
Enum which holds the different types of a Principal.
|
Constructor and Description |
---|
PortablePrincipal(java.lang.String principalClzName, java.lang.String principalName, PortablePrincipal.PrincipalType type)
Constructor.
|
PortablePrincipal(java.lang.String principalClzName, java.lang.String principalName, PortablePrincipal.PrincipalType type, PortableProperties principalProperties)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
PortableProperties |
getPrincipalProperties()
Getter method to return the Principal Properties.
|
PortablePrincipal.PrincipalType |
getType()
Getter method for the Type of the principal.
|
int |
hashCode() |
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() |
@ConstructorProperties(value={"principalClazName","principalName","type","principalProperties"}) public PortablePrincipal(java.lang.String principalClzName, java.lang.String principalName, PortablePrincipal.PrincipalType type, PortableProperties principalProperties)
principalClzName
- Class Name of the PrincipalprincipalName
- Name of the Principaltype
- Type of Principalproperties
- Properties of the Principal@ConstructorProperties(value={"principalClazName","principalName","type"}) public PortablePrincipal(java.lang.String principalClzName, java.lang.String principalName, PortablePrincipal.PrincipalType type)
principalClzName
- Class Name of the PrincipalprincipalName
- Name of the Principaltype
- Type of Principalpublic java.lang.String getPrincipalName()
public PortablePrincipal.PrincipalType getType()
public java.lang.String getPrincipalClassName()
public PortableProperties getPrincipalProperties()
public java.lang.String toString()
toString
in class java.lang.Object
public static javax.management.openmbean.CompositeType toCompositeType()
public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
ct
- - This parameter is there only for future compatibility reasons with JDK 6.0. It can be ignored at this point.public static PortablePrincipal from(javax.management.openmbean.CompositeData cd)
cd
- Composite Data which has information regarding the objectpublic boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object