java.io.Serializable
, java.security.Principal
, IdentityDomainPrincipal
, WLSPrincipal
IDCSAppRoleImpl
, IDCSClientImpl
, IDCSScopeImpl
, WLSGroupImpl
, WLSUserImpl
public abstract class WLSAbstractPrincipal extends java.lang.Object implements WLSPrincipal, IdentityDomainPrincipal
WLSAbstractPrincipal
class is a convenience abstract class
that implements a principal whose name field will be signed by the
weblogic.security.provider.PrincipalValidatorImpl
class. To use
this class, you should make the PrincipalValidatorImpl
class the
runtime class for your Principal Validation provider, or extend that class and make
the extended class your Principal Validation provider.Note: Use of this class is not required by WebLogic Server. It is simply a convenience class.
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
principalFactoryCreated |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object another) |
Compares this principal to the principal in the specified object.
|
java.lang.String |
getDn() |
Gets the principal's distinguished name.
|
java.lang.String |
getGuid() |
Gets the principal's unique id.
|
java.lang.String |
getName() |
Gets the name of this principal.
|
byte[] |
getSalt() |
Gets the principal's salt.
|
byte[] |
getSignature() |
Gets the derived principal's trust signature.
|
byte[] |
getSignedData() |
Gets the derived principal's signing data, which is
used to generate the trust signature.
|
int |
hashCode() |
Returns a hashcode for the name of this principal.
|
boolean |
isEqualsCaseInsensitive() |
|
boolean |
isEqualsCompareDnAndGuid() |
|
boolean |
isPrincipalFactoryCreated() |
|
protected void |
setDn(java.lang.String dn) |
|
void |
setEqualsCaseInsensitive(boolean equalsCaseInsensitive) |
|
void |
setEqualsCompareDnAndGuid(boolean equalsCompareDnAndGuid) |
|
protected void |
setGuid(java.lang.String guid) |
|
void |
setIdentityDomain(java.lang.String identityDomain) |
Sets the identity domain of this principal.
|
protected void |
setName(java.lang.String name) |
Sets the name of this principal.
|
void |
setSalt(byte[] salt) |
Sets the principal's salt.
|
void |
setSignature(byte[] signature) |
Sets the derived principal's trust signature.
|
java.lang.String |
toString() |
Returns a String representation of this principal.
|
public boolean isEqualsCaseInsensitive()
public boolean isEqualsCompareDnAndGuid()
public void setEqualsCaseInsensitive(boolean equalsCaseInsensitive)
public void setEqualsCompareDnAndGuid(boolean equalsCompareDnAndGuid)
public java.lang.String getName()
getName
in interface java.security.Principal
setName(java.lang.String)
protected void setName(java.lang.String name)
name
- the name of this principal, represented as a String.getName()
public boolean equals(java.lang.Object another)
equals
in interface java.security.Principal
equals
in class java.lang.Object
another
- the other principal with which to compare this principal.TRUE
if the principal passed in matches the principal
passed in, and FALSE
otherwise.public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public byte[] getSignature()
getSignature
in interface WLSPrincipal
setSignature(byte[])
public void setSignature(byte[] signature)
setSignature
in interface WLSPrincipal
signature
- the derived principal's trust signsture, represented as an array of bytes.getSignature()
public byte[] getSalt()
getSalt
in interface WLSPrincipal
setSalt(byte[])
public void setSalt(byte[] salt)
salt
- the principal's salt, represented as an array of bytes.getSalt()
public byte[] getSignedData()
getSignedData
in interface WLSPrincipal
public java.lang.String getGuid()
WLSPrincipal
getGuid
in interface WLSPrincipal
protected void setGuid(java.lang.String guid)
public java.lang.String getDn()
WLSPrincipal
getDn
in interface WLSPrincipal
protected void setDn(java.lang.String dn)
public boolean isPrincipalFactoryCreated()
public void setIdentityDomain(java.lang.String identityDomain)
identityDomain
- the identity domain of this principal, represented as a String. Set only if
not previously set
getIdentityDomain()