Package org.apache.qpid.server.security
Class SiteSpecificTrustStoreImpl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.security.AbstractTrustStore<SiteSpecificTrustStoreImpl>
-
- org.apache.qpid.server.security.SiteSpecificTrustStoreImpl
-
- All Implemented Interfaces:
ConfiguredObject<SiteSpecificTrustStoreImpl>
,ContextProvider
,PermissionedObject
,TaskExecutorProvider
,TrustStore<SiteSpecificTrustStoreImpl>
,SiteSpecificTrustStore<SiteSpecificTrustStoreImpl>
public class SiteSpecificTrustStoreImpl extends AbstractTrustStore<SiteSpecificTrustStoreImpl> implements SiteSpecificTrustStore<SiteSpecificTrustStoreImpl>
-
-
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.SiteSpecificTrustStore
CERTIFICATE, DEFAULT_TRUST_STORE_SITE_SPECIFIC_CONNECT_TIMEOUT, DEFAULT_TRUST_STORE_SITE_SPECIFIC_READ_TIMEOUT, TRUST_STORE_SITE_SPECIFIC_CONNECT_TIMEOUT, TRUST_STORE_SITE_SPECIFIC_READ_TIMEOUT
-
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 SiteSpecificTrustStoreImpl(java.util.Map<java.lang.String,java.lang.Object> attributes, Broker<?> broker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.common.util.concurrent.ListenableFuture<java.lang.Void>
doActivate()
java.lang.String
getCertificate()
java.security.cert.Certificate[]
getCertificates()
java.lang.String
getSiteUrl()
protected javax.net.ssl.TrustManager[]
getTrustManagersInternal()
protected void
initialize()
protected void
onOpen()
protected void
postResolve()
void
refreshCertificate()
protected void
validateOnCreate()
-
Methods inherited from class org.apache.qpid.server.security.AbstractTrustStore
changeAttributes, getBroker, getCertificateDetails, getCertificateExpiryCheckFrequency, getCertificateExpiryWarnPeriod, getCertificateRevocationListPath, getCertificateRevocationListUrl, getExcludedVirtualHostNodeMessageSources, getIncludedVirtualHostNodeMessageSources, getTrustManagers, getTrustManagers, getUrlFromString, isCertificateRevocationCheckEnabled, isCertificateRevocationCheckOfOnlyEndEntityCertificates, isCertificateRevocationCheckWithIgnoringSoftFailures, isCertificateRevocationCheckWithNoFallback, isCertificateRevocationCheckWithPreferringCertificateRevocationList, isExposedAsMessageSource, isTrustAnchorValidityEnforced, logCreated, logDeleted, logOperation, logRecovered, logUpdated, onClose, onDelete, onValidate, validateChange
-
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, postResolveChildren, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, toString, updateModel, validateChildDelete
-
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, 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.TaskExecutorProvider
getTaskExecutor
-
Methods inherited from interface org.apache.qpid.server.model.TrustStore
getCertificateDetails, getCertificateExpiryCheckFrequency, getCertificateExpiryWarnPeriod, getCertificateRevocationListPath, getCertificateRevocationListUrl, getExcludedVirtualHostNodeMessageSources, getIncludedVirtualHostNodeMessageSources, getName, getTrustManagers, isCertificateRevocationCheckEnabled, isCertificateRevocationCheckOfOnlyEndEntityCertificates, isCertificateRevocationCheckWithIgnoringSoftFailures, isCertificateRevocationCheckWithNoFallback, isCertificateRevocationCheckWithPreferringCertificateRevocationList, isExposedAsMessageSource, isTrustAnchorValidityEnforced
-
-
-
-
Constructor Detail
-
SiteSpecificTrustStoreImpl
public SiteSpecificTrustStoreImpl(java.util.Map<java.lang.String,java.lang.Object> attributes, Broker<?> broker)
-
-
Method Detail
-
initialize
protected void initialize()
- Specified by:
initialize
in classAbstractTrustStore<SiteSpecificTrustStoreImpl>
-
getSiteUrl
public java.lang.String getSiteUrl()
- Specified by:
getSiteUrl
in interfaceSiteSpecificTrustStore<SiteSpecificTrustStoreImpl>
-
onOpen
protected void onOpen()
- Overrides:
onOpen
in classAbstractConfiguredObject<SiteSpecificTrustStoreImpl>
-
postResolve
protected void postResolve()
- Overrides:
postResolve
in classAbstractConfiguredObject<SiteSpecificTrustStoreImpl>
-
validateOnCreate
protected void validateOnCreate()
- Overrides:
validateOnCreate
in classAbstractConfiguredObject<SiteSpecificTrustStoreImpl>
-
getCertificate
public java.lang.String getCertificate()
- Specified by:
getCertificate
in interfaceSiteSpecificTrustStore<SiteSpecificTrustStoreImpl>
-
getTrustManagersInternal
protected javax.net.ssl.TrustManager[] getTrustManagersInternal() throws java.security.GeneralSecurityException
- Specified by:
getTrustManagersInternal
in classAbstractTrustStore<SiteSpecificTrustStoreImpl>
- Throws:
java.security.GeneralSecurityException
-
getCertificates
public java.security.cert.Certificate[] getCertificates() throws java.security.GeneralSecurityException
- Specified by:
getCertificates
in interfaceTrustStore<SiteSpecificTrustStoreImpl>
- Throws:
java.security.GeneralSecurityException
-
doActivate
protected com.google.common.util.concurrent.ListenableFuture<java.lang.Void> doActivate()
-
refreshCertificate
public void refreshCertificate()
- Specified by:
refreshCertificate
in interfaceSiteSpecificTrustStore<SiteSpecificTrustStoreImpl>
-
-