|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.control.AbstractControl
org.ldaptive.control.SessionTrackingControl
public class SessionTrackingControl
Request/response control for session tracking. See https://tools.ietf.org/html/draft-wahl-ldap-session-03. Control is defined as:
LDAPString ::= OCTET STRING -- UTF-8 encoded
LDAPOID ::= OCTET STRING -- Constrained to numericoid
SessionIdentifierControlValue ::= SEQUENCE {
sessionSourceIp LDAPString,
sessionSourceName LDAPString,
formatOID LDAPOID,
sessionTrackingIdentifier LDAPString
}
Note that criticality must be either false or absent.
| Field Summary | |
|---|---|
static String |
OID
OID of this control. |
static String |
RADIUS_ACCT_MULTI_OID
OID for the Acct-Multi-Session-Id RADIUS attribute format. |
static String |
RADIUS_ACCT_OID
OID for the Acct-Session-Id RADIUS attribute format. |
static String |
USERNAME_ACCT_OID
OID for the SASL authorization identity string format. |
| Fields inherited from class org.ldaptive.control.AbstractControl |
|---|
logger |
| Constructor Summary | |
|---|---|
SessionTrackingControl()
Default constructor. |
|
SessionTrackingControl(String sourceIP,
String sourceName,
String oid,
String trackingIdentifier)
Creates a new session tracking control. |
|
| Method Summary | |
|---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data. |
byte[] |
encode()
Provides the BER encoding of this control. |
boolean |
equals(Object o)
|
String |
getFormatOID()
Returns the format OID. |
String |
getSessionSourceIp()
Returns the session source ip. |
String |
getSessionSourceName()
Returns the session source name. |
String |
getSessionTrackingIdentifier()
Returns the session tracking identifier. |
int |
hashCode()
Returns the hash code for this object. |
void |
setFormatOID(String s)
Sets the format OID. |
void |
setSessionSourceIp(String s)
Sets the session source ip. |
void |
setSessionSourceName(String s)
Sets the session source name. |
void |
setSessionTrackingIdentifier(String s)
Sets the session tracking identifier. |
String |
toString()
|
| Methods inherited from class org.ldaptive.control.AbstractControl |
|---|
getCriticality, getOID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ldaptive.control.Control |
|---|
getCriticality, getOID |
| Field Detail |
|---|
public static final String OID
public static final String RADIUS_ACCT_OID
public static final String RADIUS_ACCT_MULTI_OID
public static final String USERNAME_ACCT_OID
| Constructor Detail |
|---|
public SessionTrackingControl()
public SessionTrackingControl(String sourceIP,
String sourceName,
String oid,
String trackingIdentifier)
sourceIP - session source ipsourceName - session source nameoid - format OIDtrackingIdentifier - session tracking identifier| Method Detail |
|---|
public String getSessionSourceIp()
public void setSessionSourceIp(String s)
s - session source ippublic String getSessionSourceName()
public void setSessionSourceName(String s)
s - session source namepublic String getFormatOID()
public void setFormatOID(String s)
s - format OIDpublic String getSessionTrackingIdentifier()
public void setSessionTrackingIdentifier(String s)
s - session tracking identifierpublic boolean equals(Object o)
AbstractControl
equals in class AbstractControlpublic int hashCode()
AbstractControl
hashCode in class AbstractControlpublic String toString()
toString in class Objectpublic byte[] encode()
RequestControl
encode in interface RequestControlpublic void decode(byte[] berValue)
ResponseControl
decode in interface ResponseControlberValue - BER encoded response control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||