public class AuthenticatedServerManager extends Object
Modifier and Type | Class and Description |
---|---|
class |
AuthenticatedServerManager.TicketEvaluationWrapper
Wrapper used to return all values which are needed by an authenticated server after verification.
|
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_SERVER_PRIVATE_KEY_FILENAME |
Modifier and Type | Method and Description |
---|---|
AuthenticatedServerManager.TicketEvaluationWrapper |
evaluateClientServerTicket(rst.domotic.authentication.TicketAuthenticatorWrapperType.TicketAuthenticatorWrapper wrapper)
Validates the ticket from a given TicketAuthenticatorWrapper and returns the client ID,
if the ticket is valid.
|
static AuthenticatedServerManager |
getInstance() |
byte[] |
getServiceServerSecretKey()
Should only be used in tests and thus returns null when not in test mode.
|
static void |
shutdown() |
public static final String SERVICE_SERVER_PRIVATE_KEY_FILENAME
public static AuthenticatedServerManager getInstance() throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
org.openbase.jul.exception.CouldNotPerformException
InterruptedException
public static void shutdown()
public AuthenticatedServerManager.TicketEvaluationWrapper evaluateClientServerTicket(rst.domotic.authentication.TicketAuthenticatorWrapperType.TicketAuthenticatorWrapper wrapper) throws IOException, org.openbase.jul.exception.RejectedException
wrapper
- TicketAuthenticatorWrapper holding information about the ticket's validity and the client ID.IOException
- For I/O errors during the decryption.org.openbase.jul.exception.RejectedException
- If the ticket is not valid.public byte[] getServiceServerSecretKey()
Copyright © 2017–2018 openbase.org. All rights reserved.