|
Project Aristotle - ArisID Attribute Services | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openliberty.arisid.protocol.ldap.PrivacyControl
public class PrivacyControl
Field Summary |
---|
Fields inherited from interface javax.naming.ldap.Control |
---|
CRITICAL, NONCRITICAL |
Fields inherited from interface org.openliberty.arisid.protocol.ldap.IPrivacyControl |
---|
OID_IGF_CONTROL |
Constructor Summary | |
---|---|
PrivacyControl(byte[] encodedValue)
Decodes and constructs a Java object representing the encodedValue |
|
PrivacyControl(IInteraction ixn)
|
|
PrivacyControl(IInteraction ixn,
boolean critical)
|
Method Summary | |
---|---|
java.lang.String |
getAppName()
|
java.net.URI |
getAppURI()
Deprecated. Use getCarmlURI() instead |
CarmlDoc |
getCarmlDoc()
A convenience method to obtain the CarmlDoc object referenced by this control. |
java.net.URI |
getCarmlURI()
|
java.util.Map<java.lang.String,IPolicy> |
getConstraintMap()
Returns all dynamic WS-Policy constraints (interaction and attributes, predicates, roles) for the current transaction. |
IPolicy |
getDynamicConstraints(java.lang.String nameId)
Returns dynamic WS-Policy for the specified Attribute, Predicate or Role name identifier or the interaction name if the constraint applies to the entire Interaction. |
byte[] |
getEncodedValue()
Encode ASN.1 value. |
java.lang.String |
getID()
|
java.lang.String |
getInteractionName()
|
IPolicy |
getTransactionConstraints(java.lang.String nameId)
|
boolean |
isCritical()
|
void |
loadCarmlDoc(java.net.URI localUri)
This is a convenience method intended for servers/proxies that need to instantiate a CarmlDoc object. |
void |
setDynamicConstraints(java.util.Map<java.lang.String,IPolicy> dynamicConstraints)
Set dynamic transaction constraints. |
void |
setDynamicConstraints(java.lang.String nameId,
IPolicy txnConstraints)
Set dynamic transaction constraints. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrivacyControl(IInteraction ixn) throws IGFException
IGFException
public PrivacyControl(IInteraction ixn, boolean critical) throws IGFException
IGFException
public PrivacyControl(byte[] encodedValue) throws DecodeException
encodedValue
- ASN.1 encoded value as per Privacy Control Specifiction:
http://www.openliberty.org/wiki/index.php/Profile_LDAP#
Extended_PolicySequence_Variation
DecodeException
Method Detail |
---|
public byte[] getEncodedValue()
getEncodedValue
in interface javax.naming.ldap.Control
getEncodedValue
in interface IPrivacyControl
public java.lang.String getID()
getID
in interface javax.naming.ldap.Control
getID
in interface IPrivacyControl
public boolean isCritical()
isCritical
in interface javax.naming.ldap.Control
isCritical
in interface IPrivacyControl
public void setDynamicConstraints(java.lang.String nameId, IPolicy txnConstraints)
IPrivacyControl
setDynamicConstraints
in interface IPrivacyControl
nameId
- The nameId of an Attribute Predicate or Role the policy is to
be applied to.txnConstraints
- An IPolicy object containing the constraints for the specified
object.public void setDynamicConstraints(java.util.Map<java.lang.String,IPolicy> dynamicConstraints)
IPrivacyControl
setDynamicConstraints
in interface IPrivacyControl
dynamicConstraints
- A Map containing a set of nameIds of Attributes, Predicates,
or Roles and the Policy associated with each nameId.public java.util.Map<java.lang.String,IPolicy> getConstraintMap()
IPrivacyControl
getConstraintMap
in interface IPrivacyControl
public IPolicy getDynamicConstraints(java.lang.String nameId)
IPrivacyControl
getDynamicConstraints
in interface IPrivacyControl
nameId
- An nameIdentifier for an attribute, predicate, or role) or an
Interaction name for which policy is to be returned.
public CarmlDoc getCarmlDoc()
loadCarmlDoc(URI)
is called first.
public void loadCarmlDoc(java.net.URI localUri) throws java.net.URISyntaxException, java.io.FileNotFoundException, AttrSvcInitializedException, java.lang.InstantiationException, IGFException, java.lang.IllegalAccessException
localUri
- A URI to a copy of the CARML document matching the
getAppName()
of this control. If localUri is null,
the method will use the stored URI to load the document.
java.net.URISyntaxException
java.lang.IllegalAccessException
IGFException
java.lang.InstantiationException
AttrSvcInitializedException
java.io.FileNotFoundException
public IPolicy getTransactionConstraints(java.lang.String nameId)
public java.lang.String getInteractionName()
getInteractionName
in interface IPrivacyControl
public java.lang.String getAppName()
getAppName
in interface IPrivacyControl
public java.net.URI getAppURI()
getCarmlURI()
instead
getAppURI
in interface IPrivacyControl
public java.net.URI getCarmlURI()
getCarmlURI
in interface IPrivacyControl
|
OpenLiberty.org - Licensed under Apache APL 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |