Package org.apache.qpid.server.security
Class NonJavaKeyStoreImpl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.security.AbstractKeyStore<NonJavaKeyStoreImpl>
-
- org.apache.qpid.server.security.NonJavaKeyStoreImpl
-
- All Implemented Interfaces:
ConfiguredObject<NonJavaKeyStoreImpl>
,ContextProvider
,KeyStore<NonJavaKeyStoreImpl>
,PermissionedObject
,TaskExecutorProvider
,NonJavaKeyStore<NonJavaKeyStoreImpl>
public class NonJavaKeyStoreImpl extends AbstractKeyStore<NonJavaKeyStoreImpl> implements NonJavaKeyStore<NonJavaKeyStoreImpl>
-
-
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.model.KeyStore
CERTIFICATE_EXPIRY_CHECK_FREQUENCY, CERTIFICATE_EXPIRY_WARN_PERIOD, DEFAULT_CERTIFICATE_EXPIRY_CHECK_FREQUENCY, DEFAULT_CERTIFICATE_EXPIRY_WARN_PERIOD
-
Fields inherited from interface org.apache.qpid.server.security.NonJavaKeyStore
CERTIFICATE_URL, PRIVATE_KEY_URL
-
-
Constructor Summary
Constructors Constructor Description NonJavaKeyStoreImpl(Map<String,Object> attributes, Broker<?> broker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkCertificateExpiry()
protected com.google.common.util.concurrent.ListenableFuture<Void>
doActivate()
protected Collection<Certificate>
getCertificates()
String
getCertificateUrl()
Date
getCertificateValidEnd()
Date
getCertificateValidStart()
String
getIntermediateCertificateUrl()
KeyManager[]
getKeyManagers()
String
getPrivateKeyUrl()
String
getSubjectName()
void
onValidate()
Validation performed for configured object creation and opening.protected void
validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
-
Methods inherited from class org.apache.qpid.server.security.AbstractKeyStore
checkCertificatesExpiry, getBroker, getCertificateDetails, 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, 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, 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.model.KeyStore
getCertificateDetails, getCertificateExpiryCheckFrequency, getCertificateExpiryWarnPeriod
-
Methods inherited from interface org.apache.qpid.server.security.NonJavaKeyStore
getDescription
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Method Detail
-
getPrivateKeyUrl
public String getPrivateKeyUrl()
- Specified by:
getPrivateKeyUrl
in interfaceNonJavaKeyStore<NonJavaKeyStoreImpl>
-
getCertificateUrl
public String getCertificateUrl()
- Specified by:
getCertificateUrl
in interfaceNonJavaKeyStore<NonJavaKeyStoreImpl>
-
getIntermediateCertificateUrl
public String getIntermediateCertificateUrl()
- Specified by:
getIntermediateCertificateUrl
in interfaceNonJavaKeyStore<NonJavaKeyStoreImpl>
-
getSubjectName
public String getSubjectName()
- Specified by:
getSubjectName
in interfaceNonJavaKeyStore<NonJavaKeyStoreImpl>
-
getCertificateValidEnd
public Date getCertificateValidEnd()
- Specified by:
getCertificateValidEnd
in interfaceNonJavaKeyStore<NonJavaKeyStoreImpl>
-
getCertificateValidStart
public Date getCertificateValidStart()
- Specified by:
getCertificateValidStart
in interfaceNonJavaKeyStore<NonJavaKeyStoreImpl>
-
getKeyManagers
public KeyManager[] getKeyManagers() throws GeneralSecurityException
- Specified by:
getKeyManagers
in interfaceKeyStore<NonJavaKeyStoreImpl>
- Throws:
GeneralSecurityException
-
onValidate
public void onValidate()
Description copied from class:AbstractConfiguredObject
Validation performed for configured object creation and opening.- Overrides:
onValidate
in classAbstractConfiguredObject<NonJavaKeyStoreImpl>
-
doActivate
protected com.google.common.util.concurrent.ListenableFuture<Void> doActivate()
-
validateChange
protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
- Overrides:
validateChange
in classAbstractConfiguredObject<NonJavaKeyStoreImpl>
-
checkCertificateExpiry
protected void checkCertificateExpiry()
- Specified by:
checkCertificateExpiry
in classAbstractKeyStore<NonJavaKeyStoreImpl>
-
getCertificates
protected Collection<Certificate> getCertificates()
- Specified by:
getCertificates
in classAbstractKeyStore<NonJavaKeyStoreImpl>
-
-