public abstract class AbstractSagPrincipal
extends java.lang.Object
implements java.io.Serializable
SagPrincipal
and
Serializable
.Constructor and Description |
---|
AbstractSagPrincipal() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Compares this object with the specified object.
|
java.lang.String |
getDomain()
Returns the domain of this principal.
|
java.lang.String |
getName()
Returns the name of this principal.
|
java.lang.String |
getPropertyAttribute(java.lang.String aKey)
Gets the property attribute that corresponds with the specified key.
|
java.util.Enumeration |
getPropertyKeys()
Gets all property keys in
Set . |
java.lang.String |
getQualifiedName()
Returns the qualified name of the principal.
|
abstract java.lang.String |
getType()
Gets the type of the principals.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isPropertyWritable()
Indicates whether the properties of this principal can be written to a
persistent store.
|
void |
setDomain(java.lang.String aDomain)
Sets the domain of the principal.
|
void |
setName(java.lang.String aName)
Sets the name of the principal.
|
void |
setProperties(java.util.Properties properties)
Sets the properties.
|
void |
setProperty(java.lang.String aKey,
java.lang.String aValue)
Sets a property.
|
java.lang.String |
toString()
String representation of a principal.
|
void |
writeProperties()
Can be overwritten by subclasses to write the properties to a
persistent store.
|
public java.lang.String getName()
public void setName(java.lang.String aName)
domain
\name
format, but the
recommended practice is to use setDomain().aName
- The name of the principal.java.lang.IllegalArgumentException
- If you try to overwrite the name.public java.lang.String getDomain()
public void setDomain(java.lang.String aDomain)
aDomain
- A String that contains the domain of the
principal.public java.lang.String getQualifiedName()
public java.lang.String getPropertyAttribute(java.lang.String aKey)
aKey
- The key for which the given property attribute corresponds.public java.util.Enumeration getPropertyKeys()
Set
.Set
.public void setProperties(java.util.Properties properties)
properties
- The properties to be set.public void setProperty(java.lang.String aKey, java.lang.String aValue)
Note: This property could be volatile if the properties are not writable for this type of principal.
aKey
- The key for the property.aValue
- The value of the property.public abstract java.lang.String getType()
public boolean isPropertyWritable()
false
, meaning that the properties cannot be written to the
store.public void writeProperties() throws SagGeneralSecurityException
UnsupportedOperationException
- object unless
overwritten.SagGeneralSecurityException
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
True
if the specified object is an instance
of the same class and has the same name as this object.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object