|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.edc.server.spi.authorization.ExternalAuthDTO
public class ExternalAuthDTO
The ExternalAuthDTO
class is used for sending all the information to the
evaluate()
method. When the Rights
Management Service calls the implementation, it creates an instance of this class, fills in all the information,
and sends it to the implementation call. The implementation class can use the methods to query and retrieve values.
Constructor Summary | |
---|---|
ExternalAuthDTO()
|
Method Summary | |
---|---|
java.lang.String |
getAlternateId()
Retrieves the external identifier, if any, associated with the license. |
java.lang.String |
getClientIPAddress()
Retrieves the client IP address. |
java.lang.Object |
getContext()
Retrieves the context of the authenticated client as an object. |
java.lang.String |
getLicenseId()
Retrieves the license identifier for the secured document. |
java.lang.String |
getLocale()
Retrieves the server locale information. |
ExternalAuthOperationType |
getOperationType()
Retrieves the type of operation being performed by the client. |
java.util.ArrayList |
getPermissions()
Retrieves a list of allowable permissions as per the Rights Management Service policy evaluator. |
java.lang.String |
getPolicyId()
Returns the policy identifier used for securing the document. |
java.util.List |
getPolicyProperty(java.lang.String propname)
Retrieves the value for a given property within a policy. |
java.util.HashMap |
getPolicyProps()
Retrieves the list of policy properties. |
java.util.HashMap |
getRequestHeaders()
Retrieves the list of HTTP request headers. |
boolean |
isAnonymous()
Determines whether the authenticated client is an anonymous user. |
void |
setAlternateId(java.lang.String alternateId)
Sets the external identifier associated with the license. |
void |
setAnonymous(boolean isAnonymous)
Sets whether the user is anonymous. |
void |
setClientIPAddress(java.lang.String clientIPAddress)
Sets the client IP address. |
void |
setContext(java.lang.Object context)
Sets the authenticated user's context. |
void |
setLicenseId(java.lang.String licenseId)
Sets the license identifier used for securing the document. |
void |
setLocale(java.lang.String locale)
Sets the server locale. |
void |
setOperationType(ExternalAuthOperationType operationType)
Sets the operation type performed by the user. |
void |
setPermissions(java.util.ArrayList permissions)
Sets the allowable permission as evaluated by Rights Management Service. |
void |
setPolicyId(java.lang.String policyId)
Sets the policy identifier used for securing the document. |
void |
setPolicyProperty(java.lang.String propname,
java.util.List value)
Sets the property value for a particular property. |
void |
setPolicyProps(java.util.HashMap policyProps)
Sets the list of policy properties. |
void |
setRequestHeaders(java.util.HashMap requestHeaders)
Sets the list of HTTP request headers. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalAuthDTO()
Method Detail |
---|
public java.lang.String getClientIPAddress()
java.lang.String
containing the client IP address.public void setClientIPAddress(java.lang.String clientIPAddress)
evaluate()
method.
clientIPAddress
- A java.lang.String
containing the IP address of the client.public java.lang.Object getContext()
public void setContext(java.lang.Object context)
evaluate()
method.
context
- The authenticated user's context.public boolean isAnonymous()
true
if the authenticated client is an anonymous user, false
otherwise.public void setAnonymous(boolean isAnonymous)
evaluate()
method.
isAnonymous
- true
if the authenticated client is an anonymous user, false
otherwise.public java.lang.String getLicenseId()
java.lang.String
containing the license identifier for the secured document.public void setLicenseId(java.lang.String licenseId)
evaluate()
method.
licenseId
- A java.lang.String
containing the license identifier for the secured document.public ExternalAuthOperationType getOperationType()
public void setOperationType(ExternalAuthOperationType operationType)
evaluate()
method.
operationType
- One of secure
or view
.public java.util.ArrayList getPermissions()
java.util.ArrayList
of allowable permissions as per the Rights Management Service
policy evaluator.public void setPermissions(java.util.ArrayList permissions)
evaluate()
method.
permissions
- A java.util.ArrayList
of permissions.public java.lang.String getPolicyId()
public void setPolicyId(java.lang.String policyId)
evaluate()
method.
policyId
- A java.lang.String
containing the value.public java.util.HashMap getPolicyProps()
public void setPolicyProps(java.util.HashMap policyProps)
evaluate()
method.
policyProps
- The list of policy properties.public java.util.List getPolicyProperty(java.lang.String propname)
propname
- A java.lang.String
containing the property name for which to return a value.
public void setPolicyProperty(java.lang.String propname, java.util.List value)
evaluate()
method.
propname
- A java.lang.String
containing the property to set the value for.value
- The value to which to set the property.public java.lang.String getLocale()
public void setLocale(java.lang.String locale)
evaluate()
method.
locale
- A java.lang.String
containing the server locale.public java.lang.String getAlternateId()
java.lang.String
containing the external identifier, if any, associated with the
license.public void setAlternateId(java.lang.String alternateId)
evaluate()
method.
alternateId
- A java.lang.String
containing the external identifier.public java.util.HashMap getRequestHeaders()
public void setRequestHeaders(java.util.HashMap requestHeaders)
evaluate()
method.
requestHeaders
- The list of request headers.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |