SessionTrackingControl extends AbstractControl implements RequestControl, ResponseControl { @Override public byte[] encode() { final List<DEREncoder> l = new ArrayList<>(); l.add(new OctetStringType(getSessionSourceIp())); l.add(new OctetStringType(getSessionSourceName())); l.add(new OctetStringType(getFormatOID())); l.add(new OctetStringType(getSessionTrackingIdentifier())); final ConstructedDEREncoder se = new ConstructedDEREncoder(UniversalDERTag.SEQ, l.toArray(new DEREncoder[0])); return se.encode(); } SessionTrackingControl();  SessionTrackingControl(final boolean critical);  SessionTrackingControl(
    final String sourceIP,
    final String sourceName,
    final String oid,
    final String trackingIdentifier);  SessionTrackingControl(
    final String sourceIP,
    final String sourceName,
    final String oid,
    final String trackingIdentifier,
    final boolean critical); @Override boolean hasValue(); String getSessionSourceIp(); void setSessionSourceIp(final String s); String getSessionSourceName(); void setSessionSourceName(final String s); String getFormatOID(); void setFormatOID(final String s); String getSessionTrackingIdentifier(); void setSessionTrackingIdentifier(final String s); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override byte[] encode(); @Override void decode(final DERBuffer encoded); static final String OID; static final String RADIUS_ACCT_OID; static final String RADIUS_ACCT_MULTI_OID; static final String USERNAME_ACCT_OID; }
@Test(groups = "control", dataProvider = "request-response") public void encode(final DERBuffer berValue, final SessionTrackingControl expected) throws Exception { Assert.assertEquals(expected.encode(), berValue.getRemainingBytes()); }