Refine search
/** * Set the canonical principal name of the subject. * * @param name the canonical principal name * * @return this context */ @Nonnull public SubjectCanonicalizationContext setPrincipalName(@Nullable final String name) { principalName = StringSupport.trimOrNull(name); return this; }
/** * Set the resourceFileName. * * @param fileName the name */ public void setFilename(@Nonnull final String fileName) { resourceFileName = StringSupport.trimOrNull(fileName); if (resourceFileName == null) { log.error("SVN working copy resource file name may not be null or empty"); throw new BeanCreationException("SVN working copy resource file name may not be null or empty"); } }
/** {@inheritDoc} */ @Override protected void doNativeParse(@Nonnull final Element element, @Nonnull final ParserContext parserContext, @Nonnull final BeanDefinitionBuilder builder) { builder.addPropertyValue("nameIdFormat", StringSupport.trimOrNull(element.getAttributeNS(null, "nameIdFormat"))); }
/** {@inheritDoc} */ @Override protected void doNativeParse(@Nonnull final Element config, @Nonnull final ParserContext parserContext, @Nonnull final BeanDefinitionBuilder builder) { super.doParse(config, builder); final String attributeId = StringSupport.trimOrNull(config.getAttributeNS(null, "attributeID")); builder.addPropertyValue("attributeId", attributeId); final String minimum = StringSupport.trimOrNull(config.getAttributeNS(null, "minimum")); builder.addPropertyValue("minimum", minimum); final String maximum = StringSupport.trimOrNull(config.getAttributeNS(null, "maximum")); builder.addPropertyValue("maximum", maximum); } }
/** {@inheritDoc} */ @Override protected void doNativeParse(@Nonnull final Element element, @Nonnull final ParserContext parserContext, @Nonnull final BeanDefinitionBuilder builder) { builder.addPropertyValue("attributeName", StringSupport.trimOrNull(element.getAttributeNS(null, "attributeName"))); if (element.hasAttributeNS(null, "attributeNameFormat")) { builder.addPropertyValue("nameFormat", StringSupport.trimOrNull(element.getAttributeNS(null, "attributeNameFormat"))); } } }
/** * Constructor. * * @param roleProtocol the protocol */ public EvaluableProtocolRoleDescriptorCriterion(@Nonnull final String roleProtocol) { protocol = Constraint.isNotNull(StringSupport.trimOrNull(roleProtocol), "Entity Role protocol was null or empty"); }
/** * Constructor. * * @param event the event ID * @param message the exception details message * @param cause the exception cause */ public EventException(@Nonnull final String event, @Nullable final String message, @Nullable final Throwable cause) { super(message, cause); eventID = Constraint.isNotNull(StringSupport.trimOrNull(event), "Event ID may not be null"); }
/** * Constructor. * * @param newValue the string value to use as the index key */ public SimpleStringMetadataIndexKey(@Nonnull final String newValue) { value = Constraint.isNotNull(StringSupport.trimOrNull(newValue), "String index value was null"); }
/** {@inheritDoc} */ @Override @Nullable public SPSession getSPSession(@Nonnull @NotEmpty final String serviceId) { final Optional<SPSession> mapped = spSessions.get(StringSupport.trimOrNull(serviceId)); return (mapped != null) ? mapped.orNull() : null; }
/** * Constructor. * * @param baseDir the base directory, must be an absolute path * @param pp the parser pool instance to use */ public FilesystemLoadSaveManager(@Nonnull final String baseDir, @Nullable final ParserPool pp) { this(new File(Constraint.isNotNull(StringSupport.trimOrNull(baseDir), "Base directory string instance was null or empty")), pp); }
/** * Constructor. * * @param event the event ID */ public EventException(@Nonnull final String event) { super(); eventID = Constraint.isNotNull(StringSupport.trimOrNull(event), "Event ID may not be null"); }
/** {@inheritDoc} */ @Override protected void doParse(@Nonnull final Element config, @Nonnull final ParserContext parserContext, @Nonnull final BeanDefinitionBuilder builder) { super.doParse(config, parserContext, builder); final String scope = StringSupport.trimOrNull(config.getAttributeNS(null, "scope")); log.debug("{} Setting scope to '{}'.", getLogPrefix(), scope); builder.addPropertyValue("scope", scope); }
/** * Constructor. * * @param name Attribute Name to match */ public Candidate(@Nonnull @NotEmpty final String name) { nam = Constraint.isNotNull(StringSupport.trimOrNull(name), "Attribute Name cannot be null or empty"); nameFormat = null; values = Collections.emptyList(); regexps = Collections.emptyList(); }
/** * Constructor. * * @param entityId the entity ID, can not be null or empty */ public EntityIdCriterion(@Nonnull @NotEmpty final String entityId) { id = Constraint.isNotNull(StringSupport.trimOrNull(entityId), "Entity ID cannot be null or empty"); }
/** * Constructor. * * @param newName the entity group name */ public EntityGroupName(@Nonnull @NotEmpty final String newName) { name = Constraint.isNotNull(StringSupport.trimOrNull(newName), "Entity group name may not be null or empty"); }
/** * Constructor. * * @param responseLocationUri the binding response location URI */ public BindingResponseLocationCriterion(@Nonnull @NotEmpty final String responseLocationUri) { location = Constraint.isNotNull(StringSupport.trimOrNull(responseLocationUri), "Response location cannot be null or empty"); }
/** * Constructor. * * @param locationUri the binding location URI */ public BindingLocationCriterion(@Nonnull @NotEmpty final String locationUri) { location = Constraint.isNotNull(StringSupport.trimOrNull(locationUri), "Location cannot be null or empty"); }
/** * Set the federation identifier for the log. * * @param id federation identifier */ public void setFederationId(@Nonnull @NotEmpty final String id) { federationId = Constraint.isNotNull(StringSupport.trimOrNull(id), "Federation ID cannot be null or empty"); }
/** * Set the consent value. * * @param val the consent value */ public void setValue(@Nonnull @NotEmpty final String val) { value = Constraint.isNotNull(StringSupport.trimOrNull(val), "The value cannot be null or empty"); }
/** * Sets the identifier to use if an {@link Item} does not have an {@link ItemId}. * * @param identifier identifier to use if an {@link Item} does not have an {@link ItemId} */ public void setNoItemIdIdentifier(@Nonnull @NotEmpty final String identifier) { noItemIdIdentifier = Constraint.isNotNull(StringSupport.trimOrNull(identifier), "Identifier can not be null or empty"); }