Class AdminRegistry
java.lang.Object
io.github.protasm.jvmud.storage.admin.AdminRegistry
Engine-owned administrator identities and grants. Only hashes of random access tokens are stored.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSerialized registry entry; token material never appears here.static final recordVersion-one registry document. -
Constructor Summary
ConstructorsConstructorDescriptionAdminRegistry(Path directory) Loads a private registry; an empty registry is bootstrapped through the local console. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRechecks both credential validity and scope so revocation affects existing connections.booleanauthenticate(String name, String token) Authenticates a token without revealing whether the identity exists.Creates an identity and returns its one-time-displayed 256-bit token.describe()Lists identities and grants without disclosing credential hashes.voidGrants or revokes engine ormudlib:<id>authority; player permissions are unrelated.static voidprivateDirectory(Path path) Creates an owner-only directory and rejects symlinks and directories owned by another account.voidDeletes an identity and all its grants.Rotates an identity's token, invalidating existing sessions on their next authorization check.
-
Constructor Details
-
AdminRegistry
Loads a private registry; an empty registry is bootstrapped through the local console.- Throws:
IOException
-
-
Method Details
-
create
Creates an identity and returns its one-time-displayed 256-bit token.- Throws:
IOException
-
rotate
Rotates an identity's token, invalidating existing sessions on their next authorization check.- Throws:
IOException
-
grant
Grants or revokes engine ormudlib:<id>authority; player permissions are unrelated.- Throws:
IOException
-
remove
Deletes an identity and all its grants.- Throws:
IOException
-
authenticate
-
allows
-
describe
Lists identities and grants without disclosing credential hashes. -
privateDirectory
Creates an owner-only directory and rejects symlinks and directories owned by another account.- Throws:
IOException
-