Index

A B C D E F G H I L M N O P R S T U V W X Z _ 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

a - Variable in class no.polaric.core.httpd.ServerBase
 
add(String) - Method in class no.polaric.core.auth.DuplicateChecker
 
add(String) - Method in interface no.polaric.core.auth.GroupDb
 
add(String) - Method in class no.polaric.core.auth.LocalUsers
Add a user.
add(String) - Method in interface no.polaric.core.auth.UserDb
 
add(String) - Method in class no.polaric.core.Logfile
 
add(String, Object) - Method in class no.polaric.core.auth.UserDb.DummySyncer
 
add(String, Object) - Method in interface no.polaric.core.auth.UserDb.Syncer
 
add(String, String, boolean) - Method in interface no.polaric.core.auth.GroupDb
 
add(String, String, boolean, boolean, String, String) - Method in class no.polaric.core.auth.LocalUsers
 
add(String, String, boolean, boolean, String, String) - Method in interface no.polaric.core.auth.UserDb
 
add(String, String, boolean, boolean, String, String, String) - Method in class no.polaric.core.auth.LocalUsers
 
add(String, String, boolean, boolean, String, String, String) - Method in interface no.polaric.core.auth.UserDb
 
addAuth(HttpRequest.Builder, String, String) - Method in class no.polaric.core.auth.HmacAuthenticator
Add 'Authorization' header to http request
addClient(PubSub.Client) - Method in class no.polaric.core.httpd.PubSub.Room
 
addClient(PubSub.Client) - Method in class no.polaric.core.httpd.PubSub.UserRoom
 
addServer(String, NodeWsClient) - Method in class no.polaric.core.httpd.NodeWsApi
 
addService(String) - Static method in class no.polaric.core.auth.AuthInfo
 
addShutdownHandler(ServerConfig.SimpleCb) - Method in interface no.polaric.core.ServerConfig
Add shutdown handler function.
addSubtype(Class, String) - Static method in class no.polaric.core.httpd.ServerBase
Add a subtype to be used in JSON mapper.
admin - Variable in class no.polaric.core.auth.AuthInfo
 
admin - Variable in class no.polaric.core.httpd.PubSub.Room
 
allowPost - Variable in class no.polaric.core.httpd.PubSub.Room
 
app() - Method in class no.polaric.core.httpd.WebServer
Return a Javalin object
AuthConfig - Class in no.polaric.core.auth
The security configuration must be defined via a Config object.
AuthConfig(Authenticator, Authenticator) - Constructor for class no.polaric.core.auth.AuthConfig
AuthConfig constructor.
authenticate(String) - Method in class no.polaric.core.httpd.WsNotifier
Do authentication based on URL query-string.
authInfo() - Method in interface no.polaric.core.httpd.SesNotifier.Client
 
authInfo() - Method in class no.polaric.core.httpd.WsNotifier.Client
 
AuthInfo - Class in no.polaric.core.auth
Authorizations and service config for a given user session.
AuthInfo(ServerConfig, User, Group) - Constructor for class no.polaric.core.auth.AuthInfo
Constructor.
AuthInfo(ServerConfig, WebContext) - Constructor for class no.polaric.core.auth.AuthInfo
Constructor.
AuthInfo.SesCloseFunc - Interface in no.polaric.core.auth
 
AuthInfo.SesCreateFunc - Interface in no.polaric.core.auth
 
AuthInfo.UserSessionInfo - Class in no.polaric.core.auth
 
authorize(User, Group) - Method in class no.polaric.core.auth.AuthInfo
Authorizations.
authorized(PubSub.Client) - Method in class no.polaric.core.httpd.PubSub.Room
 
authService() - Method in class no.polaric.core.httpd.WebServer
Return the auth service
AuthService - Class in no.polaric.core.auth
Web services for login, autentication and authorization.
AuthService(ServerConfig) - Constructor for class no.polaric.core.auth.AuthService
 
authStatus(Context) - Static method in class no.polaric.core.auth.AuthService
Return authorization status (as JSON)
authString(String, String) - Method in class no.polaric.core.auth.HmacAuthenticator
Generate an authentication string to use in a URL.
avail - Variable in class no.polaric.core.httpd.Services.GroupInfo
 

B

b2hex(byte[]) - Static method in class no.polaric.core.util.SecUtils
Hexadecimal representation of a byte array.
b64decode(String) - Static method in class no.polaric.core.util.SecUtils
 
b64encode(byte[]) - Static method in class no.polaric.core.util.SecUtils
 
Base64 - Class in com.mindprod.base64
Encode arbitrary binary into printable ASCII using BASE64 encoding.
Base64() - Constructor for class com.mindprod.base64.Base64
constructor
build(Object...) - Method in class no.polaric.core.auth.AuthConfig
 

C

callsign - Variable in class no.polaric.core.auth.AuthInfo
 
canPost(PubSub.Client) - Method in class no.polaric.core.httpd.PubSub.Room
 
cb() - Method in interface no.polaric.core.ServerConfig.SimpleCb
 
checkAuth(String, String, String, String) - Method in class no.polaric.core.auth.HmacAuthenticator
Check authentication fields: userid, nonce, hmac and data)
cleanPath(String) - Static method in class no.polaric.core.httpd.ServerBase
 
Client(WsContext) - Constructor for class no.polaric.core.httpd.NodeWs.Client
 
Client(WsContext) - Constructor for class no.polaric.core.httpd.PubSub.Client
 
Client(WsContext) - Constructor for class no.polaric.core.httpd.WsNotifier.Client
 
clientIpAddr(Context) - Method in class no.polaric.core.httpd.ServerBase
 
clients() - Method in class no.polaric.core.httpd.WsNotifier
Return collection of clients
close() - Method in class no.polaric.core.httpd.NodeWsClient
 
close() - Method in class no.polaric.core.httpd.WsNotifier.Client
 
close(AuthInfo.UserSessionInfo) - Method in interface no.polaric.core.auth.AuthInfo.SesCloseFunc
 
closeSes(WsContext) - Method in class no.polaric.core.httpd.WsNotifier
Close the client session.
closeUserSes(AuthInfo.SesCloseFunc) - Method in class no.polaric.core.httpd.WebServer
Register a handler-function to be called when user-session is closed.
com.mindprod.base64 - package com.mindprod.base64
 
conf() - Method in class no.polaric.core.auth.AuthService
Return the configuration
conf() - Method in class no.polaric.core.httpd.ServerBase
Get interface to the server-config
config() - Method in class no.polaric.core.ConfigBase
Get configuration properties.
config() - Method in interface no.polaric.core.ServerConfig
Get configuration properties.
ConfigBase - Class in no.polaric.core
Base class, implementing common methods of ServerConfig.
ConfigBase() - Constructor for class no.polaric.core.ConfigBase
 
contains(String) - Method in class no.polaric.core.auth.DuplicateChecker
 
corsHeaders(Context) - Method in class no.polaric.core.auth.AuthService
Produce CORS headers.
create(String) - Method in interface no.polaric.core.auth.AuthInfo.SesCreateFunc
 
created() - Method in class no.polaric.core.httpd.WsNotifier.Client
 
createRoom(String, boolean, boolean, boolean, boolean, Class) - Method in class no.polaric.core.httpd.PubSub
Create a room with restricted access
createRoom(String, boolean, boolean, boolean, boolean, Class) - Method in interface no.polaric.core.ServerConfig.PubSub
Create a room with privileges
createRoom(String, Class) - Method in class no.polaric.core.httpd.PubSub
Create a room
createRoom(String, Class) - Method in interface no.polaric.core.ServerConfig.PubSub
Create a room
createUserRoom(String, String, Class) - Method in class no.polaric.core.httpd.PubSub
Create a room for a given userid
createUserSes(AuthInfo.SesCreateFunc) - Method in class no.polaric.core.httpd.WebServer
Register a handler-function to be called when user-session is opened.
cset - Variable in class no.polaric.core.httpd.PubSub.Room
 
ctx() - Method in class no.polaric.core.httpd.WsNotifier.Client
 

D

debug(String, String) - Method in class no.polaric.core.Logfile
 
DEBUG - Enum constant in enum class no.polaric.core.Logfile.Level
 
DEBUGGING - Static variable in class com.mindprod.base64.Base64
used to disable test driver
decode(String) - Method in class com.mindprod.base64.Base64
decode a well-formed complete Base64 string back into an array of bytes.
DEFAULT - Static variable in class no.polaric.core.auth.Group
 
DELETE(String) - Method in class no.polaric.core.httpd.RestClient
 
deserializeJson(String, Class) - Static method in class no.polaric.core.httpd.ServerBase
Deserialize object from JSON
DeviceAuthorizer - Class in no.polaric.core.auth
Authorizer for devices.
DeviceAuthorizer() - Constructor for class no.polaric.core.auth.DeviceAuthorizer
 
digest(byte[], String) - Static method in class no.polaric.core.util.SecUtils
Deprecated.
MD5 is cryptographically broken and should not be used for security purposes. Use xDigest() for SHA-256 instead. This method is retained only for compatibility with legacy systems that require MD5.
digestB64(String, int) - Static method in class no.polaric.core.util.SecUtils
Deprecated.
This method uses MD5 which is cryptographically broken. Use xDigestB64() instead.
digestHex(String) - Static method in class no.polaric.core.util.SecUtils
Deprecated.
This method uses MD5 which is cryptographically broken. Use xDigestHex() instead.
directLogin(Context) - Method in class no.polaric.core.auth.AuthService
 
display(byte[]) - Static method in class com.mindprod.base64.Base64
debug display array as if there were 8-bit Latin-1
DummySyncer() - Constructor for class no.polaric.core.auth.UserDb.DummySyncer
 
DuplicateChecker - Class in no.polaric.core.auth
Duplicate checker for nonces.
DuplicateChecker(int) - Constructor for class no.polaric.core.auth.DuplicateChecker
 

E

encode(byte[]) - Method in class com.mindprod.base64.Base64
Encode an arbitrary array of bytes as Base64 printable ASCII.
error(String, String) - Method in class no.polaric.core.Logfile
 
ERROR - Enum constant in enum class no.polaric.core.Logfile.Level
 
escape4regex(String) - Static method in class no.polaric.core.util.SecUtils
 
expireUserKey(String) - Method in class no.polaric.core.auth.HmacAuthenticator
Expire session-key for a user if older than MAX_SESSION_LENGTH.

F

fixText(String) - Method in class no.polaric.core.httpd.ServerBase
Sanitize text that can be used in HTML output.
from - Variable in class no.polaric.core.ServerConfig.Notification
 
fromJson(String, Class) - Static method in class no.polaric.core.httpd.ServerBase
Deserialize object from JSON

G

genBodyDigest(Context) - Static method in class no.polaric.core.auth.AuthService
Generate a SHA256 digest of the request body.
get(String) - Method in interface no.polaric.core.auth.GroupDb
 
get(String) - Method in class no.polaric.core.auth.LocalGroups
 
get(String) - Method in class no.polaric.core.auth.LocalUsers
Get a single user.
get(String) - Method in interface no.polaric.core.auth.UserDb
 
get(String) - Method in class no.polaric.core.util.LRUCache
 
GET(String) - Method in class no.polaric.core.httpd.RestClient
 
GET(String, boolean) - Method in class no.polaric.core.httpd.RestClient
 
getAll() - Method in interface no.polaric.core.auth.GroupDb
 
getAll() - Method in class no.polaric.core.auth.LocalGroups
 
getAll() - Method in class no.polaric.core.auth.LocalUsers
Get all users as a collection.
getAll() - Method in interface no.polaric.core.auth.UserDb
 
getAllowedTrackers() - Method in class no.polaric.core.auth.User
 
getAllowOrigin(Context) - Method in class no.polaric.core.auth.AuthService
Allowed origin (for CORS).
getAltGroup() - Method in class no.polaric.core.auth.User
 
getAuthInfo(Context) - Static method in class no.polaric.core.auth.AuthService
 
getAuthInfo(Context) - Method in class no.polaric.core.httpd.ServerBase
Get info about logged-in user and authorization
getAuthInfo(WebContext) - Static method in class no.polaric.core.auth.AuthService
Create an AuthInfo object from the user profile and add it as an attribute on the request (if not there already).
getBoolProperty(String, boolean) - Method in class no.polaric.core.ConfigBase
Get boolean property
getBoolProperty(String, boolean) - Method in interface no.polaric.core.ServerConfig
Get boolean configuration property.
getCallsign() - Method in class no.polaric.core.auth.User
 
getGroup() - Method in class no.polaric.core.auth.User
 
getGroupDb() - Method in class no.polaric.core.auth.LocalUsers
 
getGroupDb() - Method in interface no.polaric.core.auth.UserDb
 
getIdent() - Method in class no.polaric.core.auth.Group
 
getIdent() - Method in class no.polaric.core.auth.User
 
getIntProperty(String, int) - Method in class no.polaric.core.ConfigBase
Get integer property
getIntProperty(String, int) - Method in interface no.polaric.core.ServerConfig
Get integer configuration property.
getLastUsed() - Method in class no.polaric.core.auth.LocalUsers.User
 
getLastUsed() - Method in class no.polaric.core.auth.User
 
getName() - Method in class no.polaric.core.auth.Group
 
getName() - Method in class no.polaric.core.auth.User
 
getNodes() - Method in class no.polaric.core.httpd.NodeWsApi
 
getPosProperty(String) - Method in class no.polaric.core.ConfigBase
Get position property (lat, long)
getPosProperty(String) - Method in interface no.polaric.core.ServerConfig
Get position (lat, long) configuration property.
getProperty(String, String) - Method in class no.polaric.core.ConfigBase
Get a configuration property
getProperty(String, String) - Method in interface no.polaric.core.ServerConfig
Get string configuration property.
getRandom(int) - Static method in class no.polaric.core.util.SecUtils
Generate a random key.
getRole(User, String) - Method in class no.polaric.core.auth.HmacAuthenticator
 
getSessionProfile(Context) - Static method in class no.polaric.core.auth.AuthInfo
 
getSessionProfile(WebContext) - Static method in class no.polaric.core.auth.AuthInfo
 
getSubscribers() - Method in class no.polaric.core.httpd.NodeWs
 
getSyncer() - Method in class no.polaric.core.auth.LocalUsers
 
getSyncer() - Method in interface no.polaric.core.auth.UserDb
 
getTags() - Method in class no.polaric.core.auth.Group
 
getUrl() - Method in class no.polaric.core.httpd.RestClient
 
getUserKey(String) - Method in class no.polaric.core.auth.HmacAuthenticator
Get session-key for a user
getUserses() - Method in class no.polaric.core.auth.AuthInfo
Get the user's session info.
getWebserver() - Method in interface no.polaric.core.ServerConfig
Get webserver interface
group - Variable in class no.polaric.core.auth.AuthInfo
 
group() - Method in class no.polaric.core.httpd.WsNotifier.Client
 
Group - Class in no.polaric.core.auth
Group class.
Group(String, String, String, boolean) - Constructor for class no.polaric.core.auth.Group
 
groupAllowed(Group, User, boolean) - Method in class no.polaric.core.httpd.Services
 
groupDb() - Method in class no.polaric.core.auth.AuthService
 
groupDb() - Method in class no.polaric.core.httpd.WebServer
Return the group-database
GroupDb - Interface in no.polaric.core.auth
Interface to group (role) database.
groupid - Variable in class no.polaric.core.auth.AuthInfo
 
GroupInfo() - Constructor for class no.polaric.core.httpd.Services.GroupInfo
 
GroupInfo(String, String, boolean) - Constructor for class no.polaric.core.httpd.Services.GroupInfo
 

H

handle(SesNotifier.Client) - Method in interface no.polaric.core.httpd.SesNotifier.SHandler
 
handleTextFrame(String) - Method in class no.polaric.core.httpd.NodeWs.Client
 
handleTextFrame(String) - Method in class no.polaric.core.httpd.PubSub.Client
 
handleTextFrame(String) - Method in class no.polaric.core.httpd.WsNotifier.Client
Handler for text frame.
hasClient(PubSub.Client) - Method in class no.polaric.core.httpd.PubSub.Room
 
hasLoginUser(String) - Method in class no.polaric.core.httpd.WebServer
Return true if the given userid is logged on to the system.
hasRoom(String) - Method in class no.polaric.core.httpd.PubSub
Check if a room exists
hasUser(String) - Method in class no.polaric.core.auth.LocalUsers
 
hasUser(String) - Method in interface no.polaric.core.ServerConfig.UserDb
 
hmac(String, String) - Static method in class no.polaric.core.util.SecUtils
 
hmacAuth() - Method in class no.polaric.core.auth.AuthService
 
HmacAuthenticator - Class in no.polaric.core.auth
Authenticator using a SHA-256 HMAC.
HmacAuthenticator(ServerConfig, String, String, UserDb) - Constructor for class no.polaric.core.auth.HmacAuthenticator
 
hmacB64(String, String, int) - Static method in class no.polaric.core.util.SecUtils
 
hmacHex(String, String) - Static method in class no.polaric.core.util.SecUtils
 
host() - Method in class no.polaric.core.httpd.WsNotifier.Client
 

I

icon() - Method in class no.polaric.core.httpd.ServerBase
 
ident - Variable in class no.polaric.core.httpd.Services.GroupInfo
 
info(String, String) - Method in class no.polaric.core.Logfile
 
INFO - Enum constant in enum class no.polaric.core.Logfile.Level
 
init(ServerConfig, SesNotifier) - Static method in class no.polaric.core.auth.AuthInfo
Called by the application to register handlers for opening and closing sessions.
isAdmin() - Method in class no.polaric.core.auth.User
 
isAuthorized(WebContext, SessionStore, List<UserProfile>) - Method in class no.polaric.core.auth.DeviceAuthorizer
 
isAuthorized(WebContext, SessionStore, List<UserProfile>) - Method in class no.polaric.core.auth.UserAuthorizer
Authorize if user has been assigned the specified level.
isConnected() - Method in class no.polaric.core.httpd.NodeWsClient
 
isConnected(String) - Method in class no.polaric.core.httpd.NodeWsApi
 
isMobile() - Method in class no.polaric.core.httpd.WsNotifier.Client
 
isOperator() - Method in class no.polaric.core.auth.Group
 
isOperator() - Method in class no.polaric.core.auth.User
 
isSuspended() - Method in class no.polaric.core.auth.User
 
isTrackerAllowed(String, String) - Method in class no.polaric.core.auth.AuthInfo
 

L

load() - Method in class no.polaric.core.auth.PasswordFileAuthenticator
Load passwords (hashes) from file.
LocalGroups - Class in no.polaric.core.auth
Group (role) info is manually written in a file.
LocalGroups(ServerConfig, String) - Constructor for class no.polaric.core.auth.LocalGroups
 
localTime - Static variable in class no.polaric.core.httpd.ServerBase
 
LocalUsers - Class in no.polaric.core.auth
User info stored locally in a file.
LocalUsers(ServerConfig, String, GroupDb, AuthService) - Constructor for class no.polaric.core.auth.LocalUsers
 
LocalUsers.User - Class in no.polaric.core.auth
User info class.
log() - Method in class no.polaric.core.ConfigBase
Get logfile
log() - Method in interface no.polaric.core.ServerConfig
Use logfile
log(String) - Method in class no.polaric.core.Logfile
 
log(String, String) - Method in class no.polaric.core.Logfile
 
log(Logfile.Level, String, String) - Method in class no.polaric.core.Logfile
 
Logfile - Class in no.polaric.core
Logging
Logfile(ServerConfig, String) - Constructor for class no.polaric.core.Logfile
 
Logfile(ServerConfig, String, String) - Constructor for class no.polaric.core.Logfile
 
Logfile.Level - Enum Class in no.polaric.core
 
login - Variable in class no.polaric.core.httpd.PubSub.Room
 
login() - Method in class no.polaric.core.auth.AuthInfo
Return true if user is logged in.
login() - Method in class no.polaric.core.httpd.WsNotifier.Client
 
loginUsers() - Method in class no.polaric.core.httpd.WebServer
Return a set of logged in users.
LRUCache<T> - Class in no.polaric.core.util
 
LRUCache(int) - Constructor for class no.polaric.core.util.LRUCache
 

M

main(String[]) - Static method in class com.mindprod.base64.Base64
test driver
mapper - Static variable in class no.polaric.core.auth.AuthService
 
mapper - Static variable in class no.polaric.core.httpd.ServerBase
 
metaTag(String, String) - Method in class no.polaric.core.httpd.ServerBase
 
msgClass - Variable in class no.polaric.core.httpd.PubSub.Room
 

N

name - Variable in class no.polaric.core.httpd.Services.GroupInfo
 
nClients() - Method in class no.polaric.core.httpd.PubSub.Room
 
nClients() - Method in class no.polaric.core.httpd.WebServer
Number of clients.
nClients() - Method in class no.polaric.core.httpd.WsNotifier
Return number of clients.
nClients() - Method in interface no.polaric.core.ServerConfig.Web
 
newClient(WsContext) - Method in class no.polaric.core.httpd.NodeWs
Factory method.
newClient(WsContext) - Method in class no.polaric.core.httpd.PubSub
Factory method.
newClient(WsContext) - Method in class no.polaric.core.httpd.WsNotifier
Factory method
nHttpReq() - Method in class no.polaric.core.httpd.WebServer
Number of http requests since startup.
nHttpReq() - Method in interface no.polaric.core.ServerConfig.Web
 
nIn() - Method in class no.polaric.core.httpd.WsNotifier.Client
 
nLoggedin() - Method in class no.polaric.core.httpd.WebServer
Number of logged-in clients.
nLoggedin() - Method in interface no.polaric.core.ServerConfig.Web
 
nLoggedIn() - Method in class no.polaric.core.httpd.WsNotifier
Return number of logged-in users
nLogins() - Method in class no.polaric.core.httpd.WebServer
Number of logins since startup.
nLogins() - Method in class no.polaric.core.httpd.WsNotifier
Return number of logins
nLogins() - Method in interface no.polaric.core.ServerConfig.Web
 
no.polaric.core - package no.polaric.core
 
no.polaric.core.auth - package no.polaric.core.auth
 
no.polaric.core.httpd - package no.polaric.core.httpd
 
no.polaric.core.util - package no.polaric.core.util
 
nodeid - Variable in class no.polaric.core.httpd.NodeWs.Client
 
NodeWs - Class in no.polaric.core.httpd
WebSocket communiction between server nodes.
NodeWs(ServerConfig, NodeWsApi.Handler<String>) - Constructor for class no.polaric.core.httpd.NodeWs
 
NodeWs.Client - Class in no.polaric.core.httpd
 
NodeWsApi<T> - Class in no.polaric.core.httpd
 
NodeWsApi(ServerConfig, String, NodeWs, Class<T>) - Constructor for class no.polaric.core.httpd.NodeWsApi
 
NodeWsApi.Handler<T> - Interface in no.polaric.core.httpd
 
NodeWsClient - Class in no.polaric.core.httpd
Client side of websocket.
NodeWsClient(ServerConfig, String, String, boolean) - Constructor for class no.polaric.core.httpd.NodeWsClient
 
NONE - Enum constant in enum class no.polaric.core.Logfile.Level
 
Notification(String, String, String, Date, int) - Constructor for class no.polaric.core.ServerConfig.Notification
 
notify(String) - Method in interface no.polaric.core.httpd.WebServer.UserLogin
 
notifyLogin(String) - Method in class no.polaric.core.httpd.WebServer
User login notification.
notifyLogout(String) - Method in class no.polaric.core.httpd.WebServer
User logout notification.
notifyUser(String, ServerConfig.Notification) - Method in class no.polaric.core.httpd.WebServer
Send notification to a room.
notifyUser(String, ServerConfig.Notification) - Method in interface no.polaric.core.ServerConfig.Web
 
nOut() - Method in class no.polaric.core.httpd.WsNotifier.Client
 
nVisits() - Method in class no.polaric.core.httpd.WebServer
Number of visits since startup.
nVisits() - Method in class no.polaric.core.httpd.WsNotifier
Return number of visits
nVisits() - Method in interface no.polaric.core.ServerConfig.Web
 

O

onClose(WebSocket, int, String) - Method in class no.polaric.core.httpd.NodeWsClient
 
onCloseSes(SesNotifier.SHandler) - Method in interface no.polaric.core.httpd.SesNotifier
 
onCloseSes(SesNotifier.SHandler) - Method in class no.polaric.core.httpd.WsNotifier
Register a callback for close-session events
onError(WebSocket, Throwable) - Method in class no.polaric.core.httpd.NodeWsClient
 
onLogin(WebServer.UserLogin) - Method in class no.polaric.core.httpd.WebServer
Register a handler-function to be called when user logs on to the system.
onLogout(WebServer.UserLogin) - Method in class no.polaric.core.httpd.WebServer
Register a handler-function to be called when user logs off the system.
onOpen(WebSocket) - Method in class no.polaric.core.httpd.NodeWsClient
 
onOpenSes(SesNotifier.SHandler) - Method in interface no.polaric.core.httpd.SesNotifier
 
onOpenSes(SesNotifier.SHandler) - Method in class no.polaric.core.httpd.WsNotifier
Register a callback for open-session events
onText(WebSocket, CharSequence, boolean) - Method in class no.polaric.core.httpd.NodeWsClient
 
open() - Method in class no.polaric.core.httpd.NodeWsClient
 
operator - Variable in class no.polaric.core.auth.AuthInfo
 
operator - Variable in class no.polaric.core.httpd.PubSub.Room
 

P

PasswordFileAuthenticator - Class in no.polaric.core.auth
Use a simple password file.
PasswordFileAuthenticator(ServerConfig, String, UserDb) - Constructor for class no.polaric.core.auth.PasswordFileAuthenticator
 
POST(String, String) - Method in class no.polaric.core.httpd.RestClient
 
postText(String, Predicate<WsNotifier.Client>) - Method in class no.polaric.core.httpd.WsNotifier
 
postText(Function<WsNotifier.Client, String>, Predicate<WsNotifier.Client>) - Method in class no.polaric.core.httpd.WsNotifier
Distribute a text to the clients for which the predicate evaluates to true.
properties() - Method in class no.polaric.core.ConfigBase
Get plugin properties.
properties() - Method in interface no.polaric.core.ServerConfig
Plugin properties.
protect(String) - Method in class no.polaric.core.httpd.ServerBase
Protect an URL.
protect(String, String) - Method in class no.polaric.core.httpd.ServerBase
Protect an URL.
protectDeviceUrl(String) - Method in class no.polaric.core.httpd.WebServer
 
protectDeviceUrl(String) - Method in interface no.polaric.core.ServerConfig.Web
 
protectUrl(String) - Method in class no.polaric.core.httpd.WebServer
Protect a URL prefix (require login)
protectUrl(String) - Method in interface no.polaric.core.ServerConfig.Web
 
protectUrl(String, String) - Method in class no.polaric.core.httpd.WebServer
Protect a URL prefix.
protectUrl(String, String) - Method in interface no.polaric.core.ServerConfig.Web
 
pubSub() - Method in class no.polaric.core.httpd.WebServer
return the pubsub service
pubSub() - Method in interface no.polaric.core.ServerConfig.Web
 
PubSub - Class in no.polaric.core.httpd
Generic publish/subscribe service using websocket.
PubSub(ServerConfig) - Constructor for class no.polaric.core.httpd.PubSub
 
PubSub.Client - Class in no.polaric.core.httpd
 
PubSub.Room - Class in no.polaric.core.httpd
Room.
PubSub.Subscribe - Class in no.polaric.core.httpd
Message content to be exchanged
PubSub.UserRoom - Class in no.polaric.core.httpd
Room which is only for clients having a specific username.
put(Object) - Method in class no.polaric.core.httpd.NodeWsClient
Post a object to the connected node (JSON encoded)
put(String, Object) - Method in class no.polaric.core.httpd.NodeWs
Post a object to a node (JSON encoded)
put(String, Object) - Method in class no.polaric.core.httpd.PubSub
 
put(String, Object) - Method in interface no.polaric.core.ServerConfig.PubSub
Post a object to a room (JSON encoded)
put(String, Object, String) - Method in class no.polaric.core.httpd.PubSub
Post a object to a room (JSON encoded)
put(String, Object, String) - Method in interface no.polaric.core.ServerConfig.PubSub
Post a object to a room owned by a user (JSON encoded)
put(String, T) - Method in class no.polaric.core.httpd.NodeWsApi
Post a object to the connected node (JSON encoded)
put(String, T) - Method in class no.polaric.core.util.LRUCache
 
PUT(String, String) - Method in class no.polaric.core.httpd.RestClient
 
putCommand(String, String) - Method in class no.polaric.core.httpd.NodeWsClient
 
putText(String) - Method in class no.polaric.core.httpd.NodeWsClient
 
putText(String, String) - Method in class no.polaric.core.httpd.NodeWs
Post a message to node.
putText(String, String) - Method in class no.polaric.core.httpd.PubSub
 
putText(String, String) - Method in interface no.polaric.core.ServerConfig.PubSub
Post a message to a room (text is prefixed with the room name)
putText(String, String, String) - Method in class no.polaric.core.httpd.PubSub
Post a message to a room (text is prefixed with the room name)

R

recv(String, T) - Method in interface no.polaric.core.httpd.NodeWsApi.Handler
 
registerMdns(String, String, int, String) - Method in class no.polaric.core.util.ZeroConf
 
reloadPasswds() - Method in class no.polaric.core.auth.AuthService
 
remove(String) - Method in interface no.polaric.core.auth.GroupDb
 
remove(String) - Method in class no.polaric.core.auth.LocalUsers
Remove a user.
remove(String) - Method in class no.polaric.core.auth.UserDb.DummySyncer
 
remove(String) - Method in interface no.polaric.core.auth.UserDb
 
remove(String) - Method in interface no.polaric.core.auth.UserDb.Syncer
 
remove(String) - Method in class no.polaric.core.util.LRUCache
 
removeClient(PubSub.Client) - Method in class no.polaric.core.httpd.PubSub.Room
 
removeRoom(String) - Method in class no.polaric.core.httpd.PubSub
Remove a room
removeSubscriber(String) - Method in class no.polaric.core.httpd.NodeWs
 
RestClient - Class in no.polaric.core.httpd
 
RestClient(ServerConfig, String) - Constructor for class no.polaric.core.httpd.RestClient
 
RestClient(ServerConfig, String, String) - Constructor for class no.polaric.core.httpd.RestClient
 
RestClient(ServerConfig, String, Authenticator) - Constructor for class no.polaric.core.httpd.RestClient
 
RestClient(ServerConfig, String, HmacAuthenticator, String) - Constructor for class no.polaric.core.httpd.RestClient
 
restore() - Method in class no.polaric.core.auth.LocalUsers
Restore from a file.
rmNode(String) - Method in class no.polaric.core.httpd.NodeWsApi
 
roleAllowed(Group) - Method in class no.polaric.core.auth.User
 
room - Variable in class no.polaric.core.httpd.PubSub.Subscribe
 
Room(boolean, boolean, boolean, boolean, Class) - Constructor for class no.polaric.core.httpd.PubSub.Room
 
Room(Class) - Constructor for class no.polaric.core.httpd.PubSub.Room
 
roundDeg(double) - Static method in class no.polaric.core.httpd.ServerBase
 

S

save() - Method in class no.polaric.core.auth.LocalUsers
Store everything in a file.
saveLogins() - Method in class no.polaric.core.auth.HmacAuthenticator
Save keys to file.
SecUtils - Class in no.polaric.core.util
Some utilities related to security.
SecUtils() - Constructor for class no.polaric.core.util.SecUtils
 
send(String) - Method in class no.polaric.core.httpd.WsNotifier.Client
Send message back to client.
serializeJson(Object) - Static method in class no.polaric.core.httpd.ServerBase
Serialize object to JSON
ServerBase - Class in no.polaric.core.httpd
 
ServerBase(ServerConfig) - Constructor for class no.polaric.core.httpd.ServerBase
 
servercall - Variable in class no.polaric.core.auth.AuthInfo
 
ServerConfig - Interface in no.polaric.core
Interface for server configuration and management.
ServerConfig.Notification - Class in no.polaric.core
Notifcation content class.
ServerConfig.PubSub - Interface in no.polaric.core
Interface to publish-subscribe service (based on websocket)
ServerConfig.SimpleCb - Interface in no.polaric.core
 
ServerConfig.UserDb - Interface in no.polaric.core
Interface to user database
ServerConfig.Web - Interface in no.polaric.core
Interface to web server.
services - Variable in class no.polaric.core.auth.AuthInfo
 
Services - Class in no.polaric.core.httpd
 
Services(ServerConfig) - Constructor for class no.polaric.core.httpd.Services
 
Services.GroupInfo - Class in no.polaric.core.httpd
 
sesId(WsContext) - Static method in class no.polaric.core.httpd.WsNotifier
 
SesNotifier - Interface in no.polaric.core.httpd
 
SesNotifier.Client - Interface in no.polaric.core.httpd
 
SesNotifier.SHandler - Interface in no.polaric.core.httpd
 
setAdmin(boolean) - Method in class no.polaric.core.auth.User
 
setAllowedTrackers(String) - Method in class no.polaric.core.auth.User
 
setAltGroup(Group) - Method in class no.polaric.core.auth.User
 
setAuthInfo(AuthInfo) - Method in class no.polaric.core.httpd.WsNotifier.Client
 
setCallsign(String) - Method in class no.polaric.core.auth.User
 
setConfig(Properties) - Method in class no.polaric.core.ConfigBase
 
setGroup(Group) - Method in class no.polaric.core.auth.User
 
setHandler(NodeWsApi.Handler<String>) - Method in class no.polaric.core.httpd.NodeWs
 
setHandler(NodeWsApi.Handler<String>) - Method in class no.polaric.core.httpd.NodeWsClient
 
setHandler(NodeWsApi.Handler<T>) - Method in class no.polaric.core.httpd.NodeWsApi
 
setLastUsed(Date) - Method in class no.polaric.core.auth.LocalUsers.User
 
setLastUsed(Date) - Method in class no.polaric.core.auth.User
 
setLineLength(int) - Method in class com.mindprod.base64.Base64
determines how long the lines are that are generated by encode.
setLineSeparator(String) - Method in class com.mindprod.base64.Base64
How lines are separated.
setLogger(Logfile) - Method in class no.polaric.core.ConfigBase
 
setName(String) - Method in class no.polaric.core.auth.Group
 
setName(String) - Method in class no.polaric.core.auth.User
 
setOperator(boolean) - Method in class no.polaric.core.auth.Group
 
setPasswd(String) - Method in class no.polaric.core.auth.LocalUsers.User
 
setPasswd(String) - Method in class no.polaric.core.auth.User
 
setProperty(String, String) - Method in class no.polaric.core.ConfigBase
Set a configuration property
setProperty(String, String) - Method in interface no.polaric.core.ServerConfig
Set string configuration property.
setSuspended(boolean) - Method in class no.polaric.core.auth.User
 
setSyncer(UserDb.Syncer) - Method in class no.polaric.core.auth.LocalUsers
 
setSyncer(UserDb.Syncer) - Method in interface no.polaric.core.auth.UserDb
 
setTags(String) - Method in class no.polaric.core.auth.Group
 
setUserid(String) - Method in class no.polaric.core.httpd.NodeWsClient
 
setUserKey(String, String) - Method in class no.polaric.core.auth.HmacAuthenticator
Set session-key for a user.
setUserSesClose(AuthInfo.SesCloseFunc) - Static method in class no.polaric.core.auth.AuthInfo
 
setUserSesFactory(AuthInfo.SesCreateFunc) - Static method in class no.polaric.core.auth.AuthInfo
 
show(byte[]) - Static method in class com.mindprod.base64.Base64
debug display array as hex
start() - Method in class no.polaric.core.httpd.Services
 
start() - Method in class no.polaric.core.httpd.WebServer
Start the webserver and services.
start() - Method in interface no.polaric.core.ServerConfig.Web
 
start(Javalin) - Method in class no.polaric.core.auth.AuthService
Set up the services.
start(String) - Method in class no.polaric.core.httpd.WsNotifier
 
stop() - Method in class no.polaric.core.httpd.WebServer
Stop the webserver and services
stop() - Method in interface no.polaric.core.ServerConfig.Web
 
subscribe(WsContext, WsNotifier.Client) - Method in class no.polaric.core.httpd.PubSub
 
subscribe(WsContext, WsNotifier.Client) - Method in class no.polaric.core.httpd.WsNotifier
Subscribe a client to the service.
subscribe(String) - Method in class no.polaric.core.httpd.NodeWsClient
 
subscribe(PubSub.Client, String) - Method in class no.polaric.core.httpd.PubSub
subscribe a client to a room.
Subscribe() - Constructor for class no.polaric.core.httpd.PubSub.Subscribe
 
systemNotification(String, String, int) - Method in class no.polaric.core.httpd.ServerBase
Send a system notification to a user.

T

tagsAuth - Variable in class no.polaric.core.auth.AuthInfo
 
text - Variable in class no.polaric.core.ServerConfig.Notification
 
throwsException(String) - Method in class no.polaric.core.auth.HmacAuthenticator
 
throwsException(String) - Method in class no.polaric.core.auth.PasswordFileAuthenticator
 
time - Variable in class no.polaric.core.ServerConfig.Notification
 
toJson(Object) - Static method in class no.polaric.core.auth.AuthService
 
toJson(Object) - Static method in class no.polaric.core.httpd.ServerBase
Serialize object to JSON
toString() - Method in class no.polaric.core.auth.AuthInfo
 
toString() - Method in class no.polaric.core.auth.DeviceAuthorizer
 
toString() - Method in class no.polaric.core.auth.UserAuthorizer
 
toString() - Method in class no.polaric.core.httpd.PubSub.Room
 
ttl - Variable in class no.polaric.core.ServerConfig.Notification
 
type - Variable in class no.polaric.core.ServerConfig.Notification
 

U

uid() - Method in class no.polaric.core.httpd.WsNotifier.Client
 
unregisterMdns() - Method in class no.polaric.core.util.ZeroConf
 
unsubscribe() - Method in class no.polaric.core.httpd.NodeWsClient
 
unsubscribe(PubSub.Client, String) - Method in class no.polaric.core.httpd.PubSub
unsubscribe a client from a room.
update(String, Object) - Method in class no.polaric.core.auth.UserDb.DummySyncer
 
update(String, Object) - Method in interface no.polaric.core.auth.UserDb.Syncer
 
updatePasswd(String, String) - Method in class no.polaric.core.auth.LocalUsers
 
updatePasswd(String, String) - Method in interface no.polaric.core.auth.UserDb
 
updateTime() - Method in class no.polaric.core.auth.LocalUsers.User
 
updateTime() - Method in class no.polaric.core.auth.User
 
updateTs(String, Date) - Method in class no.polaric.core.auth.UserDb.DummySyncer
 
updateTs(String, Date) - Method in interface no.polaric.core.auth.UserDb.Syncer
 
User - Class in no.polaric.core.auth
User info that can be stored on file.
User() - Constructor for class no.polaric.core.auth.User
 
User(String) - Constructor for class no.polaric.core.auth.User
 
User(String, Date) - Constructor for class no.polaric.core.auth.LocalUsers.User
 
UserAuthorizer - Class in no.polaric.core.auth
Authorizer for users.
UserAuthorizer() - Constructor for class no.polaric.core.auth.UserAuthorizer
 
UserAuthorizer(int) - Constructor for class no.polaric.core.auth.UserAuthorizer
 
userDb() - Method in class no.polaric.core.auth.AuthService
 
userDb() - Method in class no.polaric.core.httpd.WebServer
Return the user-database
userDb() - Method in interface no.polaric.core.ServerConfig.Web
 
UserDb - Interface in no.polaric.core.auth
Interface to user database.
UserDb.DummySyncer - Class in no.polaric.core.auth
 
UserDb.Syncer - Interface in no.polaric.core.auth
Syncer interface.
userid - Variable in class no.polaric.core.auth.AuthInfo
 
userid - Variable in class no.polaric.core.auth.AuthInfo.UserSessionInfo
 
userid - Variable in class no.polaric.core.httpd.PubSub.UserRoom
 
userName() - Method in class no.polaric.core.httpd.WsNotifier.Client
 
UserRoom(String, Class) - Constructor for class no.polaric.core.httpd.PubSub.UserRoom
 
userses - Variable in class no.polaric.core.auth.AuthInfo
 
USERSES_EXPIRE - Static variable in class no.polaric.core.auth.AuthInfo
 
UserSessionInfo(String) - Constructor for class no.polaric.core.auth.AuthInfo.UserSessionInfo
 
UserSessionInfo(String) - Constructor for class no.polaric.core.httpd.WebServer.UserSessionInfo
 
utcTime - Static variable in class no.polaric.core.httpd.ServerBase
 

V

validate(CallContext, Credentials) - Method in class no.polaric.core.auth.HmacAuthenticator
Validate credentials (do authentication).
validate(CallContext, Credentials) - Method in class no.polaric.core.auth.PasswordFileAuthenticator
 
valueOf(String) - Static method in enum class no.polaric.core.Logfile.Level
Returns the enum constant of this class with the specified name.
values() - Static method in enum class no.polaric.core.Logfile.Level
Returns an array containing the constants of this enum class, in the order they are declared.

W

warn(String, String) - Method in class no.polaric.core.Logfile
 
WARN - Enum constant in enum class no.polaric.core.Logfile.Level
 
WebServer - Class in no.polaric.core.httpd
 
WebServer(ServerConfig, int, String, String, String) - Constructor for class no.polaric.core.httpd.WebServer
Constructor for Webserver.
WebServer.UserLogin - Interface in no.polaric.core.httpd
Callback for user logins.
WebServer.UserSessionInfo - Class in no.polaric.core.httpd
 
wServer() - Method in class no.polaric.core.httpd.ServerBase
Get interface to the web-server
WsNotifier - Class in no.polaric.core.httpd
 
WsNotifier(ServerConfig) - Constructor for class no.polaric.core.httpd.WsNotifier
 
WsNotifier.Client - Class in no.polaric.core.httpd
Client

X

xDigest(byte[], String) - Static method in class no.polaric.core.util.SecUtils
 
xDigestB64(String, int) - Static method in class no.polaric.core.util.SecUtils
 
xDigestHex(String) - Static method in class no.polaric.core.util.SecUtils
 

Z

ZeroConf - Class in no.polaric.core.util
 
ZeroConf() - Constructor for class no.polaric.core.util.ZeroConf
 

_

_auth - Variable in class no.polaric.core.httpd.WsNotifier.Client
 
_clients - Variable in class no.polaric.core.httpd.WsNotifier
 
_conf - Variable in class no.polaric.core.httpd.ServerBase
 
_conf - Variable in class no.polaric.core.httpd.WebServer
 
_ctime - Variable in class no.polaric.core.httpd.WsNotifier.Client
 
_ctx - Variable in class no.polaric.core.httpd.WsNotifier.Client
 
_digest(byte[], String, String) - Static method in class no.polaric.core.util.SecUtils
Compute a hash from the text.
_encoding - Static variable in class no.polaric.core.httpd.ServerBase
 
_log(String) - Method in class no.polaric.core.Logfile
 
_nIn - Variable in class no.polaric.core.httpd.WsNotifier.Client
 
_nOut - Variable in class no.polaric.core.httpd.WsNotifier.Client
 
_port - Variable in class no.polaric.core.httpd.WebServer
 
A B C D E F G H I L M N O P R S T U V W X Z _ 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form