Package org.apache.qpid.server.security
Class AbstractKeyStore<X extends AbstractKeyStore<X>>
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.security.AbstractKeyStore<X>
-
- All Implemented Interfaces:
ConfiguredObject<X>
,ContextProvider
,KeyStore<X>
,PermissionedObject
,TaskExecutorProvider
- Direct Known Subclasses:
AutoGeneratedSelfSignedKeyStoreImpl
,FileKeyStoreImpl
,NonJavaKeyStoreImpl
public abstract class AbstractKeyStore<X extends AbstractKeyStore<X>> extends AbstractConfiguredObject<X> implements KeyStore<X>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
AbstractConfiguredObject.CallableWithArgument<V,A>, AbstractConfiguredObject.ChainedListenableFuture<V>, AbstractConfiguredObject.ChainedSettableFuture<V>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException
-
-
Field Summary
Fields Modifier and Type Field Description protected static long
ONE_DAY
-
Fields inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
SECURED_STRING_VALUE
-
Fields inherited from interface org.apache.qpid.server.model.ConfiguredObject
AWAIT_ATTAINMENT_TIMEOUT, CONTEXT, CREATED_BY, CREATED_TIME, DEFAULT_AWAIT_ATTAINMENT_TIMEOUT, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE
-
Fields inherited from interface org.apache.qpid.server.model.KeyStore
CERTIFICATE_EXPIRY_CHECK_FREQUENCY, CERTIFICATE_EXPIRY_WARN_PERIOD, DEFAULT_CERTIFICATE_EXPIRY_CHECK_FREQUENCY, DEFAULT_CERTIFICATE_EXPIRY_WARN_PERIOD
-
-
Constructor Summary
Constructors Constructor Description AbstractKeyStore(Map<String,Object> attributes, Broker<?> broker)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
checkCertificateExpiry()
protected void
checkCertificatesExpiry(long currentTime, Date expiryTestDate, X509Certificate[] chain)
Broker<?>
getBroker()
List<CertificateDetails>
getCertificateDetails()
int
getCertificateExpiryCheckFrequency()
int
getCertificateExpiryWarnPeriod()
protected abstract Collection<Certificate>
getCertificates()
protected void
initializeExpiryChecking()
protected void
logCreated(Map<String,Object> attributes, Outcome outcome)
protected void
logDeleted(Outcome outcome)
protected void
logOperation(String operation)
protected void
logRecovered(Outcome outcome)
protected void
logUpdated(Map<String,Object> attributes, Outcome outcome)
protected com.google.common.util.concurrent.ListenableFuture<Void>
onClose()
protected com.google.common.util.concurrent.ListenableFuture<Void>
onDelete()
-
Methods inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
addChangeListener, addChildAsync, addFutureCallback, applyToChildren, asObjectRecord, attainState, attributesAsString, attributeSet, authorise, authorise, authorise, authoriseCreateChild, awaitChildClassToAttainState, awaitChildClassToAttainState, beforeClose, beforeDelete, changeAttributes, childAdded, childRemoved, close, closeAsync, closeChildren, create, createAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, deleteChildren, deleteNoChecks, doAfter, doAfter, doAfter, doAfter, doAfter, doAfter, doAfterAlways, doAfterAlways, doCreation, doOnConfigThread, doOpening, doResolution, doSync, doSync, doValidation, findConfiguredObject, forceUpdateAllSecureAttributes, getAccessControl, getActualAttributes, getAncestor, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getSubjectWithAddedSystemRights, getSystemPrincipal, getSystemTaskControllerContext, getSystemTaskSubject, getSystemTaskSubject, getTaskExecutor, getType, getTypeClass, getUserPreferences, handleExceptionOnOpen, hasEncrypter, isDurable, isSystemProcess, isSystemSubject, managesChildStorage, newToken, notifyStateChanged, onCreate, onExceptionInOpen, onOpen, onResolve, onValidate, open, openAsync, postResolve, postResolveChildren, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, toString, updateModel, validateChange, validateChildDelete, validateOnCreate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.model.ConfiguredObject
addChangeListener, asObjectRecord, authorise, authorise, authorise, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getType, getTypeClass, getUserPreferences, hasEncrypter, isDurable, managesChildStorage, newToken, open, openAsync, removeChangeListener, removeContextVariable, setAttributes, setAttributesAsync, setContextVariable, setUserPreferences
-
Methods inherited from interface org.apache.qpid.server.model.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.model.KeyStore
getKeyManagers
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Field Detail
-
ONE_DAY
protected static final long ONE_DAY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBroker
public final Broker<?> getBroker()
-
onClose
protected com.google.common.util.concurrent.ListenableFuture<Void> onClose()
- Overrides:
onClose
in classAbstractConfiguredObject<X extends AbstractKeyStore<X>>
-
logOperation
protected void logOperation(String operation)
- Overrides:
logOperation
in classAbstractConfiguredObject<X extends AbstractKeyStore<X>>
-
initializeExpiryChecking
protected void initializeExpiryChecking()
-
checkCertificateExpiry
protected abstract void checkCertificateExpiry()
-
checkCertificatesExpiry
protected void checkCertificatesExpiry(long currentTime, Date expiryTestDate, X509Certificate[] chain)
-
onDelete
protected com.google.common.util.concurrent.ListenableFuture<Void> onDelete()
- Overrides:
onDelete
in classAbstractConfiguredObject<X extends AbstractKeyStore<X>>
-
getCertificateExpiryWarnPeriod
public final int getCertificateExpiryWarnPeriod()
- Specified by:
getCertificateExpiryWarnPeriod
in interfaceKeyStore<X extends AbstractKeyStore<X>>
-
getCertificateExpiryCheckFrequency
public int getCertificateExpiryCheckFrequency()
- Specified by:
getCertificateExpiryCheckFrequency
in interfaceKeyStore<X extends AbstractKeyStore<X>>
-
getCertificateDetails
public List<CertificateDetails> getCertificateDetails()
- Specified by:
getCertificateDetails
in interfaceKeyStore<X extends AbstractKeyStore<X>>
-
getCertificates
protected abstract Collection<Certificate> getCertificates()
-
logCreated
protected void logCreated(Map<String,Object> attributes, Outcome outcome)
- Overrides:
logCreated
in classAbstractConfiguredObject<X extends AbstractKeyStore<X>>
-
logRecovered
protected void logRecovered(Outcome outcome)
- Overrides:
logRecovered
in classAbstractConfiguredObject<X extends AbstractKeyStore<X>>
-
logDeleted
protected void logDeleted(Outcome outcome)
- Overrides:
logDeleted
in classAbstractConfiguredObject<X extends AbstractKeyStore<X>>
-
logUpdated
protected void logUpdated(Map<String,Object> attributes, Outcome outcome)
- Overrides:
logUpdated
in classAbstractConfiguredObject<X extends AbstractKeyStore<X>>
-
-