Skip to content

tzoratto/faya-java-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faya Java Client

Usage

Configure FayaInstance
FayaInstance faya = new FayaInstance("https://faya.domain.com", "<API_KEY_ID>:<API_KEY_SECRET>");
Create a namespace and a token
Namespace ns1 = new Namespace();
ns1.setName("my first namespace");
faya.save(ns1);

Token tk1 = new Token();
tk1.setNamespace(ns1);
faya.save(tk1);
Check a token
if (faya.check("<TOKEN_VALUE>", "<NAMESPACE_NAME>")) {
    // OK, do some stuff
} else {
    // This token is invalid against this namespace
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages