Package ch.autumo.commons.security
Interface SecureApplication
- All Known Subinterfaces:
LicensedApplication
- All Known Implementing Classes:
BaseApp
public interface SecureApplication
Secure application - every secure application must implement this and providing the
following constructor:
- public MyApplication()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Security key seed configuration parameter name. -
Method Summary
Modifier and TypeMethodDescriptionReturns an internal security key, which should different for every app.Get a pass phrase; used to unlock console tools for special operations if such tools are in place, otherwise return null; TheEncoder
uses this pass-phrase for decoding!Returns an unique security key, which should different for every app.
-
Field Details
-
SEC_KEY_SEED
Security key seed configuration parameter name.- See Also:
-
-
Method Details
-
getInternalSecurityKey
String getInternalSecurityKey()Returns an internal security key, which should different for every app. It is used for internal encryption (license secrets) in the app. Must be a HEX, 32 Bit long.- Returns:
- internal security key
-
getUniqueSecurityKey
String getUniqueSecurityKey()Returns an unique security key, which should different for every app. It is used for general encryption (transport and other secrets) in the app. Must be a HEX, 32 Bit long.- Returns:
- security key
-
getPassphrase
String getPassphrase()Get a pass phrase; used to unlock console tools for special operations if such tools are in place, otherwise return null; TheEncoder
uses this pass-phrase for decoding!- Returns:
- pass-phrase
-