Class StatelessAdmissionValidator
java.lang.Object
org.cloudburstmc.netty.signaling.admission.StatelessAdmissionValidator
- All Implemented Interfaces:
AdmissionValidator
NXS1 token validation using locally installed keys and the incoming ICE username.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Revoke all installed and retained epochs, including pending logins.voidinstallKeys(List<AdmissionKey> snapshot) Validates everything before atomically replacing a bounded snapshot.keyIds()voidmirrorKeys(BiConsumer<byte[], Map<String, byte[]>> sink) Handssinkthe ICE password context and each installed key's secret by token prefix, now and after every change, under this validator's lock.booleanready()voidretireKeys(long nowMillis) Routine rotation stops new admissions; admitted logins retain their original epoch until completion/expiry.static Stringvalidate(AdmissionRequest request, long nowMillis) Return connection settings, or null to reject.
-
Constructor Details
-
StatelessAdmissionValidator
-
-
Method Details
-
installKeys
Validates everything before atomically replacing a bounded snapshot. -
mirrorKeys
Handssinkthe ICE password context and each installed key's secret by token prefix, now and after every change, under this validator's lock. Secrets are wiped after the call. Lets native code drop requests no installed key signed. -
retireKeys
public void retireKeys(long nowMillis) Routine rotation stops new admissions; admitted logins retain their original epoch until completion/expiry. -
ready
public boolean ready() -
keyIds
-
clear
public void clear()Revoke all installed and retained epochs, including pending logins. -
validate
Description copied from interface:AdmissionValidatorReturn connection settings, or null to reject. Native code separately verifies STUN integrity.- Specified by:
validatein interfaceAdmissionValidator
-
tokenId
-