public class SessionTrackingControl extends AbstractControl implements RequestControl, ResponseControl
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.| Modifier and Type | Class and Description |
|---|---|
private static class |
SessionTrackingControl.FormatOIDHandler
Parse handler implementation for the format oid.
|
private static class |
SessionTrackingControl.SourceIpHandler
Parse handler implementation for the source ip.
|
private static class |
SessionTrackingControl.SourceNameHandler
Parse handler implementation for the source name.
|
private static class |
SessionTrackingControl.TrackingIdentifierHandler
Parse handler implementation for the tracking identifier.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
formatOID
Format OID.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
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.
|
private String |
sessionSourceIp
Session source ip.
|
private String |
sessionSourceName
Session source name.
|
private String |
sessionTrackingIdentifier
Session tracking identifier.
|
static String |
USERNAME_ACCT_OID
OID for the SASL authorization identity string format.
|
logger| Constructor and Description |
|---|
SessionTrackingControl()
Default constructor.
|
SessionTrackingControl(String sourceIP,
String sourceName,
String oid,
String trackingIdentifier)
Creates a new session tracking control.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
getCriticality, getOIDclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCriticality, getOIDpublic 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
private static final int HASH_CODE_SEED
private String sessionSourceIp
private String sessionSourceName
private String formatOID
private String sessionTrackingIdentifier
public SessionTrackingControl()
public SessionTrackingControl(String sourceIP, String sourceName, String oid, String trackingIdentifier)
sourceIP - session source ipsourceName - session source nameoid - format OIDtrackingIdentifier - session tracking identifierpublic 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)
equals in class AbstractControlpublic int hashCode()
AbstractControlhashCode in class AbstractControlpublic byte[] encode()
RequestControlencode in interface RequestControlpublic void decode(byte[] berValue)
ResponseControldecode in interface ResponseControlberValue - BER encoded response controlCopyright © 2003-2019 Virginia Tech. All Rights Reserved.