|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.decision.PDPResponse
public class PDPResponse
This class represents a request from a AuthzInterceptor to a PDPProxy. PDPResponses are collected in a PDPRequestCollection. A Request can hold several target.
Field Summary | |
---|---|
static int |
DECISION_DENY
Says that a request is denied. |
static int |
DECISION_PERMIT
Says that a request is permitted. |
static int |
DECISION_UNDEFINED
Says that a request is undefined, so no decision is maked. |
protected int |
m_decision
Decision state. |
protected java.util.List |
m_obligations
List of Obligation instances. |
protected PDPRequest |
m_request
Request that belongs to this response. |
Constructor Summary | |
---|---|
PDPResponse(int decision,
PDPRequest request)
|
|
PDPResponse(int decision,
PDPRequest request,
java.util.Collection obligations)
|
Method Summary | |
---|---|
protected void |
checkDecision(int decision)
checks decision value range. |
boolean |
equals(java.lang.Object o)
Method equals. |
int |
getDecision()
|
java.util.Collection |
getObligations()
Method getObligations returns the obligations of this PDPResponse object. |
PDPRequest |
getRequest()
|
int |
hashCode()
Method hashCode. |
boolean |
hasObligations()
Says if this response has obligations. |
boolean |
isDeny()
A short cut for DECISION_DENY == getDecision() . |
boolean |
isPermit()
A short cut for DECISION_PERMIT == getDecision() . |
boolean |
isUndefined()
A short cut for DECISION_UNDEFINED == getDecision() . |
java.lang.String |
toString()
Method toString. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DECISION_DENY
public static final int DECISION_PERMIT
public static final int DECISION_UNDEFINED
protected int m_decision
protected PDPRequest m_request
protected java.util.List m_obligations
Obligation
instances.
Constructor Detail |
---|
public PDPResponse(int decision, PDPRequest request) throws java.lang.IllegalArgumentException, java.lang.NullPointerException
decision
- the decision of the coresponding request.request
- the request to wich this is a response.
java.lang.IllegalArgumentException
- if decision is out of bounds
java.lang.NullPointerException
- if request is nullpublic PDPResponse(int decision, PDPRequest request, java.util.Collection obligations) throws java.lang.IllegalArgumentException, java.lang.NullPointerException
decision
- by the PEPrequest
- the original requestobligations
- by the PEP
java.lang.IllegalArgumentException
- if descision out of range
java.lang.NullPointerException
- if request or obligation are nullMethod Detail |
---|
protected void checkDecision(int decision) throws java.lang.IllegalArgumentException
decision
- a decision
java.lang.IllegalArgumentException
- if decision out of rangeDECISION_PERMIT
,
DECISION_DENY
,
DECISION_UNDEFINED
public int getDecision()
public PDPRequest getRequest()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the o.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Collection getObligations()
public boolean hasObligations()
public boolean isPermit()
DECISION_PERMIT
== getDecision()
.
The method is provided for faster access.
DECISION_PERMIT
== getDecision()
.public boolean isDeny()
DECISION_DENY
== getDecision()
.
The method is provided for faster access.
DECISION_DENY
== getDecision()
.public boolean isUndefined()
DECISION_UNDEFINED
== getDecision()
.
The method is provided for faster access.
DECISION_UNDEFINED
== getDecision()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |