/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); // rebuild the hash set - we may have modified the dependencies in the // child class initialization. final HashSet<ResolverPluginDependency> checkedDeps = new HashSet<>(dependencies); dependencies = ImmutableSet.copyOf(checkedDeps); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (resolvers == null) { log.warn("ChainingMetadataResolver was not configured with any member MetadataResolvers"); resolvers = Collections.emptyList(); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (null == dataSealer) { throw new ComponentInitializationException("DataSealer cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (responderId == null && responderIdLookupStrategy == null) { throw new ComponentInitializationException("Responder ID and lookup strategy cannot both be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (format == null) { throw new ComponentInitializationException("Format value cannot be null or empty"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); DeprecationSupport.warn(ObjectType.CLASS, getClass().getName(), null, null); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { ComponentSupport.initialize(bridgedObject); super.doInitialize(); logPrefix = null; }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (resultSerializer == null) { throw new ComponentInitializationException("AuthenticationResult serializer cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (cleanupInterval > 0) { cleanupTask = getCleanupTask(); if (cleanupTask == null) { throw new ComponentInitializationException("Cleanup task cannot be null if cleanupInterval is set."); } else if (cleanupTaskTimer == null) { internalTaskTimer = new Timer(true); } else { internalTaskTimer = cleanupTaskTimer; } internalTaskTimer.schedule(cleanupTask, cleanupInterval, cleanupInterval); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (null == dataSealer) { throw new ComponentInitializationException(getLogPrefix() + " no data sealer set"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { Constraint.isNotNull(scLookupStrategy, "SubjectContext lookup strategy cannot be null"); Constraint.isNotNull(attributesValueFunction, "Attribute Engine cannot be null"); super.doInitialize(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (null == idStore) { throw new ComponentInitializationException("StorageService cannot be null"); } if (idGenerator == null) { idGenerator = new RandomIdentifierGenerationStrategy(idSize); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (storageService == null) { throw new ComponentInitializationException("StorageService cannot be null"); } else if (lockoutKeyStrategy == null) { throw new ComponentInitializationException("Lockout key strategy cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); for (Stage<T> stage : pipelineStages) { if (!stage.isInitialized()) { stage.initialize(); } } } }
/** {@inheritDoc} */ @Override protected final void doInitialize() throws ComponentInitializationException { super.doInitialize(); try { initMetadataResolver(); } catch (final ComponentInitializationException e) { if (failFastInitialization) { log.error("{} Metadata provider failed to properly initialize, fail-fast=true, halting", getLogPrefix(), e); throw e; } else { log.error("{} Metadata provider failed to properly initialize, fail-fast=false, " + "continuing on in a degraded state", getLogPrefix(), e); } } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (null == idStore) { throw new ComponentInitializationException(getLogPrefix() + " No Id store set"); } log.debug("{} using the store '{}'", getLogPrefix(), idStore.getId()); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { if (null == nameIDDecoder) { throw new ComponentInitializationException("NameIDDecoder cannot be null"); } if (null == nameIdentifierDecoder) { throw new ComponentInitializationException("NameIdentifierDecoder cannot be null"); } if (null == format) { throw new ComponentInitializationException("Name identifier format cannot be empty or null"); } super.doInitialize(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); logPrefix = null; if (null == getAttributeId()) { throw new ComponentInitializationException(getLogPrefix() + " No attribute specified for this attribute value filter policy"); } if (matcher == null) { throw new ComponentInitializationException(getLogPrefix() + " Must have a permit rule or a deny rule"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (storageService == null) { throw new ComponentInitializationException( "Initialization of StorageBackedSessionManager requires non-null StorageService"); } else if (idGenerator == null) { throw new ComponentInitializationException( "Initialization of StorageBackedSessionManager requires non-null IdentifierGenerationStrategy"); } else if (cookieManager == null) { throw new ComponentInitializationException( "Initialization of StorageBackedSessionManager requires non-null CookieManager"); } else if (trackSPSessions && spSessionSerializerRegistry == null) { throw new ComponentInitializationException("Tracking SPSessions requires a spSessionSerializerRegistry"); } // This is our private instance, so we initialize it. serializer.initialize(); }