Package org.apache.qpid.server.security
Class FileKeyStoreImpl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.security.AbstractKeyStore<FileKeyStoreImpl>
-
- org.apache.qpid.server.security.FileKeyStoreImpl
-
- All Implemented Interfaces:
ConfiguredObject<FileKeyStoreImpl>
,ContextProvider
,KeyStore<FileKeyStoreImpl>
,PermissionedObject
,TaskExecutorProvider
,FileKeyStore<FileKeyStoreImpl>
public class FileKeyStoreImpl extends AbstractKeyStore<FileKeyStoreImpl> implements FileKeyStore<FileKeyStoreImpl>
-
-
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 inherited from class org.apache.qpid.server.security.AbstractKeyStore
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.security.FileKeyStore
CERTIFICATE_ALIAS, DEFAULT_KEY_MANAGER_FACTORY_ALGORITHM, DEFAULT_KEYSTORE_TYPE, KEY_MANAGER_FACTORY_ALGORITHM, KEY_STORE_TYPE, PASSWORD, STORE_URL, USE_HOST_NAME_MATCHING
-
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 FileKeyStoreImpl(Map<String,Object> attributes, Broker<?> broker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
changeAttributes(Map<String,Object> attributes)
protected void
checkCertificateExpiry()
protected com.google.common.util.concurrent.ListenableFuture<Void>
doActivate()
String
getCertificateAlias()
List<CertificateDetails>
getCertificateDetails()
protected Collection<Certificate>
getCertificates()
String
getKeyManagerFactoryAlgorithm()
KeyManager[]
getKeyManagers()
String
getKeyStoreType()
String
getPassword()
String
getPath()
String
getStoreUrl()
boolean
isUseHostNameMatching()
protected void
onOpen()
void
onValidate()
Validation performed for configured object creation and opening.void
reload()
void
setPassword(String password)
protected void
validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
-
Methods inherited from class org.apache.qpid.server.security.AbstractKeyStore
checkCertificatesExpiry, getBroker, getCertificateExpiryCheckFrequency, getCertificateExpiryWarnPeriod, initializeExpiryChecking, logCreated, logDeleted, logOperation, logRecovered, logUpdated, onClose, 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, 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, onResolve, open, openAsync, postResolve, postResolveChildren, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, toString, updateModel, 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, 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.security.FileKeyStore
getDescription
-
Methods inherited from interface org.apache.qpid.server.model.KeyStore
getCertificateExpiryCheckFrequency, getCertificateExpiryWarnPeriod
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Method Detail
-
onValidate
public void onValidate()
Description copied from class:AbstractConfiguredObject
Validation performed for configured object creation and opening.- Overrides:
onValidate
in classAbstractConfiguredObject<FileKeyStoreImpl>
-
doActivate
protected com.google.common.util.concurrent.ListenableFuture<Void> doActivate()
-
onOpen
protected void onOpen()
- Overrides:
onOpen
in classAbstractConfiguredObject<FileKeyStoreImpl>
-
changeAttributes
protected void changeAttributes(Map<String,Object> attributes)
- Overrides:
changeAttributes
in classAbstractConfiguredObject<FileKeyStoreImpl>
-
validateChange
protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
- Overrides:
validateChange
in classAbstractConfiguredObject<FileKeyStoreImpl>
-
getStoreUrl
public String getStoreUrl()
- Specified by:
getStoreUrl
in interfaceFileKeyStore<FileKeyStoreImpl>
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceFileKeyStore<FileKeyStoreImpl>
-
getCertificateAlias
public String getCertificateAlias()
- Specified by:
getCertificateAlias
in interfaceFileKeyStore<FileKeyStoreImpl>
-
getKeyManagerFactoryAlgorithm
public String getKeyManagerFactoryAlgorithm()
- Specified by:
getKeyManagerFactoryAlgorithm
in interfaceFileKeyStore<FileKeyStoreImpl>
-
getKeyStoreType
public String getKeyStoreType()
- Specified by:
getKeyStoreType
in interfaceFileKeyStore<FileKeyStoreImpl>
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceFileKeyStore<FileKeyStoreImpl>
-
isUseHostNameMatching
public boolean isUseHostNameMatching()
- Specified by:
isUseHostNameMatching
in interfaceFileKeyStore<FileKeyStoreImpl>
-
reload
public void reload()
- Specified by:
reload
in interfaceFileKeyStore<FileKeyStoreImpl>
-
setPassword
public void setPassword(String password)
-
getKeyManagers
public KeyManager[] getKeyManagers() throws GeneralSecurityException
- Specified by:
getKeyManagers
in interfaceKeyStore<FileKeyStoreImpl>
- Throws:
GeneralSecurityException
-
checkCertificateExpiry
protected void checkCertificateExpiry()
- Specified by:
checkCertificateExpiry
in classAbstractKeyStore<FileKeyStoreImpl>
-
getCertificateDetails
public List<CertificateDetails> getCertificateDetails()
- Specified by:
getCertificateDetails
in interfaceKeyStore<FileKeyStoreImpl>
- Overrides:
getCertificateDetails
in classAbstractKeyStore<FileKeyStoreImpl>
-
getCertificates
protected Collection<Certificate> getCertificates()
- Specified by:
getCertificates
in classAbstractKeyStore<FileKeyStoreImpl>
-
-