Package org.apache.qpid.server.security
Class FileTrustStoreImpl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.security.AbstractTrustStore<FileTrustStoreImpl>
-
- org.apache.qpid.server.security.FileTrustStoreImpl
-
- All Implemented Interfaces:
ConfiguredObject<FileTrustStoreImpl>
,ContextProvider
,PermissionedObject
,TaskExecutorProvider
,TrustStore<FileTrustStoreImpl>
,FileTrustStore<FileTrustStoreImpl>
public class FileTrustStoreImpl extends AbstractTrustStore<FileTrustStoreImpl> implements FileTrustStore<FileTrustStoreImpl>
-
-
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.AbstractTrustStore
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.FileTrustStore
DEFAULT_TRUST_MANAGER_FACTORY_ALGORITHM, DEFAULT_TRUSTSTORE_TYPE, PASSWORD, PEERS_ONLY, STORE_URL, TRUST_MANAGER_FACTORY_ALGORITHM, TRUST_STORE_TYPE
-
Fields inherited from interface org.apache.qpid.server.model.TrustStore
CERTIFICATE_EXPIRY_CHECK_FREQUENCY, CERTIFICATE_EXPIRY_WARN_PERIOD, CERTIFICATE_REVOCATION_CHECK_ENABLED, CERTIFICATE_REVOCATION_CHECK_OF_ONLY_END_ENTITY_CERTIFICATES, CERTIFICATE_REVOCATION_CHECK_WITH_IGNORING_SOFT_FAILURES, CERTIFICATE_REVOCATION_CHECK_WITH_NO_FALLBACK, CERTIFICATE_REVOCATION_CHECK_WITH_PREFERRING_CERTIFICATE_REVOCATION_LIST, CERTIFICATE_REVOCATION_LIST_URL, DEFAULT_CERTIFICATE_EXPIRY_CHECK_FREQUENCY, DEFAULT_CERTIFICATE_EXPIRY_WARN_PERIOD, DEFAULT_TRUST_ANCHOR_VALIDITY_ENFORCED, TRUST_ANCHOR_VALIDITY_ENFORCED
-
-
Constructor Summary
Constructors Constructor Description FileTrustStoreImpl(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 com.google.common.util.concurrent.ListenableFuture<Void>
doActivate()
List<CertificateDetails>
getCertificateDetails()
Certificate[]
getCertificates()
String
getPassword()
String
getPath()
String
getStoreUrl()
String
getTrustManagerFactoryAlgorithm()
protected TrustManager[]
getTrustManagersInternal()
String
getTrustStoreType()
protected void
initialize()
boolean
isPeersOnly()
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.AbstractTrustStore
getBroker, getCertificateExpiryCheckFrequency, getCertificateExpiryWarnPeriod, getCertificateRevocationListPath, getCertificateRevocationListUrl, getExcludedVirtualHostNodeMessageSources, getIncludedVirtualHostNodeMessageSources, getTrustManagers, getTrustManagers, getUrlFromString, isCertificateRevocationCheckEnabled, isCertificateRevocationCheckOfOnlyEndEntityCertificates, isCertificateRevocationCheckWithIgnoringSoftFailures, isCertificateRevocationCheckWithNoFallback, isCertificateRevocationCheckWithPreferringCertificateRevocationList, isExposedAsMessageSource, isTrustAnchorValidityEnforced, 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, 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.FileTrustStore
getDescription
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
Methods inherited from interface org.apache.qpid.server.model.TrustStore
getCertificateExpiryCheckFrequency, getCertificateExpiryWarnPeriod, getCertificateRevocationListPath, getCertificateRevocationListUrl, getExcludedVirtualHostNodeMessageSources, getIncludedVirtualHostNodeMessageSources, getName, getTrustManagers, isCertificateRevocationCheckEnabled, isCertificateRevocationCheckOfOnlyEndEntityCertificates, isCertificateRevocationCheckWithIgnoringSoftFailures, isCertificateRevocationCheckWithNoFallback, isCertificateRevocationCheckWithPreferringCertificateRevocationList, isExposedAsMessageSource, isTrustAnchorValidityEnforced
-
-
-
-
Method Detail
-
onValidate
public void onValidate()
Description copied from class:AbstractConfiguredObject
Validation performed for configured object creation and opening.- Overrides:
onValidate
in classAbstractTrustStore<FileTrustStoreImpl>
-
doActivate
protected com.google.common.util.concurrent.ListenableFuture<Void> doActivate()
-
validateChange
protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
- Overrides:
validateChange
in classAbstractTrustStore<FileTrustStoreImpl>
-
onOpen
protected void onOpen()
- Overrides:
onOpen
in classAbstractConfiguredObject<FileTrustStoreImpl>
-
changeAttributes
protected void changeAttributes(Map<String,Object> attributes)
- Overrides:
changeAttributes
in classAbstractTrustStore<FileTrustStoreImpl>
-
getStoreUrl
public String getStoreUrl()
- Specified by:
getStoreUrl
in interfaceFileTrustStore<FileTrustStoreImpl>
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceFileTrustStore<FileTrustStoreImpl>
-
getTrustManagerFactoryAlgorithm
public String getTrustManagerFactoryAlgorithm()
- Specified by:
getTrustManagerFactoryAlgorithm
in interfaceFileTrustStore<FileTrustStoreImpl>
-
getTrustStoreType
public String getTrustStoreType()
- Specified by:
getTrustStoreType
in interfaceFileTrustStore<FileTrustStoreImpl>
-
isPeersOnly
public boolean isPeersOnly()
- Specified by:
isPeersOnly
in interfaceFileTrustStore<FileTrustStoreImpl>
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceFileTrustStore<FileTrustStoreImpl>
-
setPassword
public void setPassword(String password)
- Specified by:
setPassword
in interfaceFileTrustStore<FileTrustStoreImpl>
-
reload
public void reload()
- Specified by:
reload
in interfaceFileTrustStore<FileTrustStoreImpl>
-
getTrustManagersInternal
protected TrustManager[] getTrustManagersInternal()
- Specified by:
getTrustManagersInternal
in classAbstractTrustStore<FileTrustStoreImpl>
-
getCertificates
public Certificate[] getCertificates()
- Specified by:
getCertificates
in interfaceTrustStore<FileTrustStoreImpl>
-
getCertificateDetails
public List<CertificateDetails> getCertificateDetails()
- Specified by:
getCertificateDetails
in interfaceTrustStore<FileTrustStoreImpl>
- Overrides:
getCertificateDetails
in classAbstractTrustStore<FileTrustStoreImpl>
-
initialize
protected void initialize()
- Specified by:
initialize
in classAbstractTrustStore<FileTrustStoreImpl>
-
-