Package org.apache.qpid.server.security
Class AutoGeneratedSelfSignedKeyStoreImpl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.security.AbstractKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
- org.apache.qpid.server.security.AutoGeneratedSelfSignedKeyStoreImpl
-
- All Implemented Interfaces:
ConfiguredObject<AutoGeneratedSelfSignedKeyStoreImpl>
,ContextProvider
,KeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
,PermissionedObject
,TaskExecutorProvider
,AutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
public class AutoGeneratedSelfSignedKeyStoreImpl extends AbstractKeyStore<AutoGeneratedSelfSignedKeyStoreImpl> implements AutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
-
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.security.AutoGeneratedSelfSignedKeyStore
ENCODED_CERTIFICATE, ENCODED_PRIVATE_KEY
-
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 AutoGeneratedSelfSignedKeyStoreImpl(Map<String,Object> attributes, Broker<?> broker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.common.util.concurrent.ListenableFuture<Void>
activate()
protected void
checkCertificateExpiry()
Content
getCertificate()
List<CertificateDetails>
getCertificateDetails()
protected Collection<Certificate>
getCertificates()
Content
getClientTrustStore(String password)
int
getDurationInMonths()
String
getEncodedCertificate()
String
getEncodedPrivateKey()
String
getKeyAlgorithm()
int
getKeyLength()
KeyManager[]
getKeyManagers()
String
getSignatureAlgorithm()
protected void
onCreate()
protected void
onOpen()
protected void
postResolve()
void
regenerateCertificate()
-
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, 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, onExceptionInOpen, onResolve, onValidate, open, openAsync, 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
getCertificateExpiryCheckFrequency, getCertificateExpiryWarnPeriod
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Method Detail
-
getKeyManagers
public KeyManager[] getKeyManagers() throws GeneralSecurityException
- Specified by:
getKeyManagers
in interfaceKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
- Throws:
GeneralSecurityException
-
getKeyAlgorithm
public String getKeyAlgorithm()
- Specified by:
getKeyAlgorithm
in interfaceAutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
getSignatureAlgorithm
public String getSignatureAlgorithm()
- Specified by:
getSignatureAlgorithm
in interfaceAutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
getKeyLength
public int getKeyLength()
- Specified by:
getKeyLength
in interfaceAutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
getDurationInMonths
public int getDurationInMonths()
- Specified by:
getDurationInMonths
in interfaceAutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
getEncodedCertificate
public String getEncodedCertificate()
- Specified by:
getEncodedCertificate
in interfaceAutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
getEncodedPrivateKey
public String getEncodedPrivateKey()
- Specified by:
getEncodedPrivateKey
in interfaceAutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
postResolve
protected void postResolve()
- Overrides:
postResolve
in classAbstractConfiguredObject<AutoGeneratedSelfSignedKeyStoreImpl>
-
onCreate
protected void onCreate()
- Overrides:
onCreate
in classAbstractConfiguredObject<AutoGeneratedSelfSignedKeyStoreImpl>
-
onOpen
protected void onOpen()
- Overrides:
onOpen
in classAbstractConfiguredObject<AutoGeneratedSelfSignedKeyStoreImpl>
-
activate
protected com.google.common.util.concurrent.ListenableFuture<Void> activate()
-
getCertificateDetails
public List<CertificateDetails> getCertificateDetails()
- Specified by:
getCertificateDetails
in interfaceKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
- Overrides:
getCertificateDetails
in classAbstractKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
checkCertificateExpiry
protected void checkCertificateExpiry()
- Specified by:
checkCertificateExpiry
in classAbstractKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
getCertificates
protected Collection<Certificate> getCertificates()
- Specified by:
getCertificates
in classAbstractKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
regenerateCertificate
public void regenerateCertificate()
- Specified by:
regenerateCertificate
in interfaceAutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
getClientTrustStore
public Content getClientTrustStore(String password)
- Specified by:
getClientTrustStore
in interfaceAutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
getCertificate
public Content getCertificate()
- Specified by:
getCertificate
in interfaceAutoGeneratedSelfSignedKeyStore<AutoGeneratedSelfSignedKeyStoreImpl>
-
-