|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netegrity.sdk.policyapi.SmObjectImpl
com.netegrity.sdk.policyapi.SmDomainObjectImpl
com.netegrity.sdk.policyapi.SmRule
public final class SmRule
Represents a SiteMinder Rule object.
This object has domain scope.
| Field Summary | |
|---|---|
static java.lang.String |
ACTION_GET
An action that uses standard HTTP to retrieve a resource for viewing. |
static java.lang.String |
ACTION_ON_AUTH_ACCEPT
Constant to indicate that the user was authenticated. |
static java.lang.String |
ACTION_ON_AUTH_ACCEPTCREDENTIALS
Constant to indicate that the user was authenticated (does not fire at validation-time) |
static java.lang.String |
ACTION_ON_AUTH_ATTEMPT
Constant to indicate that authentication failed because no user name was supplied. |
static java.lang.String |
ACTION_ON_AUTH_CHALLENGE
Constant to indicate that a response be triggered during authentication. |
static java.lang.String |
ACTION_ON_AUTH_REJECT
Constant to indicate that the user was not authenticated. |
static java.lang.String |
ACTION_ON_AUTH_USERNOTFOUND
Constant to indicate that an active response be triggered. |
static java.lang.String |
ACTION_ON_AZ_ACCEPT
Constant to indicate that the user is authorized to access the resource. |
static java.lang.String |
ACTION_ON_AZ_REJECT
Constant to indicate that the user is not authorized to access the resource. |
static java.lang.String |
ACTION_POST
An action that uses standard HTTP to post user-supplied information. |
static java.lang.String |
ACTION_PUT
An action that supports legacy HTTP actions. |
static java.lang.String |
PropAction
Constant to indicate the property Action. |
static java.lang.String |
PropActiveExpression
Constant to indicate the property Active Expression. |
static java.lang.String |
PropAgentType
Constant to indicate the property Agent Type (searchable). |
static java.lang.String |
PropAllowAccess
Constant to indicate the property Allow Access. |
static java.lang.String |
PropEnable
Constant to indicate the property Enable. |
static java.lang.String |
PropRealm
Constant to indicate the property Realm (searchable). |
static java.lang.String |
PropRegularExpression
Constant to indicate the property Regular Expression. |
static java.lang.String |
PropResource
Constant to indicate the property Resource. |
static java.lang.String |
PropTime
Constant to indicate the property Time. |
| Fields inherited from class com.netegrity.sdk.policyapi.SmObjectImpl |
|---|
PropObjectClassName |
| Fields inherited from interface com.netegrity.sdk.policyapi.SmDomainObject |
|---|
PropDomain |
| Fields inherited from interface com.netegrity.sdk.policyapi.SmObject |
|---|
ConfigurationClassName, PropDesc, PropName, PropOid |
| Constructor Summary | |
|---|---|
SmRule()
Constructs a Rule object. |
|
SmRule(java.lang.String name)
Constructs a Rule object with the specified name. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAction()
Gets the type of action that the rule executes. |
java.lang.String |
getActiveExpression()
Gets the active expression associated with the rule. |
SmObjId |
getAgent()
Gets the Object identifier of the agent . |
SmObjId |
getAgentType()
Gets the Object identifier of the agent type. |
boolean |
getAllowAccess()
Checks whether the rule allows or denies access to the protected resource. |
boolean |
getEnabled()
Checks whether the rule is enabled. |
SmObjId |
getRealm()
Gets the Object identifier of the realm. |
boolean |
getRegularExpression()
Specifies whether regular expression pattern matching is being performed. |
java.lang.String |
getResource()
Gets the resource protected by the rule. |
SmTime |
getTime()
Gets the time restriction of the rule. |
void |
readProperties(java.util.Hashtable properties)
Copies the object properties from the specified hashtable. |
void |
setAction(java.lang.String action)
Sets the type of action that the rule is executes. |
void |
setActiveExpression(java.lang.String szActiveExpr)
Sets the active expression for the rule. |
void |
setAgent(java.lang.Object Agent)
Sets the Object identifier of the agent if the Rule is Global. |
void |
setAgentType(java.lang.Object AgentType)
Sets the Object identifier of the agent type. |
void |
setAllowAccess(boolean allowAccess)
Specifies whether to allow or deny access to the resource protected by the rule. |
void |
setEnabled(boolean enable)
Enables the rule. |
void |
setRealm(java.lang.Object realm)
Sets the realm. |
void |
setRegularExpression(boolean regularExpression)
Specifies whether to perform regular expression pattern matching. |
void |
setResource(java.lang.String resource)
Sets the resource protected by the rule. |
void |
setTime(SmTime timeRestriction)
Applies a time restriction to the rule. |
void |
writeProperties(java.util.Hashtable properties)
Copies the object properties to the specified hashtable. |
| Methods inherited from class com.netegrity.sdk.policyapi.SmDomainObjectImpl |
|---|
getDomain, getDomainName, isDomainObject, isWriteable, setDomain, setDomainName |
| Methods inherited from class com.netegrity.sdk.policyapi.SmObjectImpl |
|---|
getDescription, getName, getObjectClassname, getOid, newObject, setDescription, setName, setObjectClassname, setOid, setOid, toString, writeSearchProperties |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.netegrity.sdk.policyapi.SmObject |
|---|
getDescription, getName, getObjectClassname, getOid, setDescription, setName, setObjectClassname, setOid, setOid, toString, writeSearchProperties |
| Field Detail |
|---|
public static final java.lang.String PropRealm
public static final java.lang.String PropAgentType
public static final java.lang.String PropAction
public static final java.lang.String PropResource
public static final java.lang.String PropTime
public static final java.lang.String PropAllowAccess
public static final java.lang.String PropRegularExpression
public static final java.lang.String PropActiveExpression
public static final java.lang.String PropEnable
public static final java.lang.String ACTION_GET
public static final java.lang.String ACTION_PUT
public static final java.lang.String ACTION_POST
public static final java.lang.String ACTION_ON_AZ_ACCEPT
public static final java.lang.String ACTION_ON_AZ_REJECT
public static final java.lang.String ACTION_ON_AUTH_ACCEPT
public static final java.lang.String ACTION_ON_AUTH_REJECT
public static final java.lang.String ACTION_ON_AUTH_CHALLENGE
public static final java.lang.String ACTION_ON_AUTH_ATTEMPT
public static final java.lang.String ACTION_ON_AUTH_USERNOTFOUND
public static final java.lang.String ACTION_ON_AUTH_ACCEPTCREDENTIALS
| Constructor Detail |
|---|
public SmRule()
public SmRule(java.lang.String name)
name - Name of the Rule.| Method Detail |
|---|
public SmObjId getRealm()
public void setRealm(java.lang.Object realm)
rule - The Object identifier of the Realm.public SmObjId getAgentType()
public void setAgentType(java.lang.Object AgentType)
agentType - The Object identifier of the agent type.public SmObjId getAgent()
public void setAgent(java.lang.Object Agent)
agent - The Object identifier of the agent .public java.lang.String getAction()
setAction().
public void setAction(java.lang.String action)
Get, Put, and Post. Valid values:
Get, Put, and Post
actions can be concatenated to form one action type. Concatenated
actions are delimited by a comma. For example, the following code
concatenates Get and Post operations
to form a single action for the rule myRule:
SmRule myRule = new SmRule();
String action = SmRule.ACTION_GET + "," + SmRule.ACTION_POST;
myRule.setAction (action);
action - The type of action that the rule executes.public java.lang.String getResource()
public void setResource(java.lang.String resource)
resource - The resource protected by the rule.public void setTime(SmTime timeRestriction)
timeRestriction - The time restriction of the rule.public SmTime getTime()
public boolean getAllowAccess()
true if the rule allows access.
false otherwise.public void setAllowAccess(boolean allowAccess)
allowAccess - true to allows access;
false otherwise.public boolean getRegularExpression()
true when regular expression pattern matching is
being performed. false otherwise.public void setRegularExpression(boolean regularExpression)
regularExpression - true when regular expression
pattern matching is to be performed. false
otherwise.public boolean getEnabled()
true if the rule is enabled. false
otherwise.public void setEnabled(boolean enable)
enable - If true the rule will be enabled.
false otherwise.public java.lang.String getActiveExpression()
<@lib="LibName" func="FuncName" param="FuncParam"@>
LibName is the name of the shared library that supports
the active rule.FuncName is the name of the function in the shared library
that implements the active rule.FuncParam is an optional list of parameters to be passed to
the function in the shared library.
public void setActiveExpression(java.lang.String szActiveExpr)
<@lib="LibName" func="FuncName" param="FuncParam"@>
LibName is the name of the shared library that supports the active
Rule.FuncName is the name of the function in the shared library
that implements the active rule.
FuncParam is an optional list of parameters to be passed to the
function in the shared library.
public void writeProperties(java.util.Hashtable properties)
SmObject
writeProperties in interface SmObjectwriteProperties in class SmDomainObjectImplproperties - The hashtable where the object properties will be
copied.public void readProperties(java.util.Hashtable properties)
SmObject
readProperties in interface SmObjectreadProperties in class SmDomainObjectImplproperties - The new properties of the object.
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||