Class PreferenceUtil
- java.lang.Object
-
- de.trustable.ca3s.core.service.util.PreferenceUtil
-
@Service public class PreferenceUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringACME_HTTP01_CALLBACK_PORTSstatic StringACME_HTTP01_TIMEOUT_MILLI_SECstatic StringCHECK_CRLstatic StringLIST_DELIMITERstatic StringMAX_NEXT_UPDATE_PERIOD_CRL_SECstatic StringNOTIFY_RA_ON_REQUESTstatic StringSELECTED_HASHESstatic StringSELECTED_SIGNING_ALGOSstatic StringSERVER_SIDE_KEY_CREATION_ALLOWEDstatic StringSERVER_SIDE_KEY_DELETE_AFTER_DAYSstatic StringSERVER_SIDE_KEY_DELETE_AFTER_USESstatic LongSYSTEM_PREFERENCE_ID
-
Constructor Summary
Constructors Constructor Description PreferenceUtil(UserPreferenceService userPreferenceService, PreferenceDefaults preferenceDefaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAcmeHTTP01CallbackPorts()longgetAcmeHTTP01TimeoutMilliSec()longgetMaxNextUpdatePeriodCRLSec()PreferencesgetPrefs(Long userId)intgetServerSideKeyDeleteAfterDays()intgetServerSideKeyDeleteAfterUses()PreferencesgetSystemPrefs()booleanisCheckCrl()booleanisNotifyRAOnRequest()booleanisServerSideKeyCreationAllowed()
-
-
-
Field Detail
-
SYSTEM_PREFERENCE_ID
public static final Long SYSTEM_PREFERENCE_ID
-
LIST_DELIMITER
public static final String LIST_DELIMITER
- See Also:
- Constant Field Values
-
CHECK_CRL
public static final String CHECK_CRL
- See Also:
- Constant Field Values
-
NOTIFY_RA_ON_REQUEST
public static final String NOTIFY_RA_ON_REQUEST
- See Also:
- Constant Field Values
-
MAX_NEXT_UPDATE_PERIOD_CRL_SEC
public static final String MAX_NEXT_UPDATE_PERIOD_CRL_SEC
- See Also:
- Constant Field Values
-
ACME_HTTP01_TIMEOUT_MILLI_SEC
public static final String ACME_HTTP01_TIMEOUT_MILLI_SEC
- See Also:
- Constant Field Values
-
ACME_HTTP01_CALLBACK_PORTS
public static final String ACME_HTTP01_CALLBACK_PORTS
- See Also:
- Constant Field Values
-
SERVER_SIDE_KEY_CREATION_ALLOWED
public static final String SERVER_SIDE_KEY_CREATION_ALLOWED
- See Also:
- Constant Field Values
-
SERVER_SIDE_KEY_DELETE_AFTER_DAYS
public static final String SERVER_SIDE_KEY_DELETE_AFTER_DAYS
- See Also:
- Constant Field Values
-
SERVER_SIDE_KEY_DELETE_AFTER_USES
public static final String SERVER_SIDE_KEY_DELETE_AFTER_USES
- See Also:
- Constant Field Values
-
SELECTED_HASHES
public static final String SELECTED_HASHES
- See Also:
- Constant Field Values
-
SELECTED_SIGNING_ALGOS
public static final String SELECTED_SIGNING_ALGOS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PreferenceUtil
public PreferenceUtil(UserPreferenceService userPreferenceService, PreferenceDefaults preferenceDefaults)
-
-
Method Detail
-
isCheckCrl
public boolean isCheckCrl()
-
isNotifyRAOnRequest
public boolean isNotifyRAOnRequest()
-
getMaxNextUpdatePeriodCRLSec
public long getMaxNextUpdatePeriodCRLSec()
-
isServerSideKeyCreationAllowed
public boolean isServerSideKeyCreationAllowed()
-
getServerSideKeyDeleteAfterDays
public int getServerSideKeyDeleteAfterDays()
-
getServerSideKeyDeleteAfterUses
public int getServerSideKeyDeleteAfterUses()
-
getAcmeHTTP01TimeoutMilliSec
public long getAcmeHTTP01TimeoutMilliSec()
-
getAcmeHTTP01CallbackPorts
public String getAcmeHTTP01CallbackPorts()
-
getSystemPrefs
public Preferences getSystemPrefs()
-
getPrefs
public Preferences getPrefs(Long userId)
-
-