Refine search
/** * Get the logging ID of the profile used by the current request. * * <p>The logging ID is used for audit logging and may be used for other * logging-related functions such as in diagnostic contexts.</p> * * @return ID of the profile used for logging */ @Nonnull @NotEmpty public String getLoggingId() { return loggingId; }
/** * Save a particular object, indexed by the supplied key. * * @param key the key under which to index the object * @param xmlObject the object to save * @param overwrite whether or not to overwrite any existing object indexed by the supplied key * * @throws IOException if there is a fatal error saving the object, or if overwrite=false, * if an object already exists indexed by the supplied key */ public void save(@Nonnull @NotEmpty final String key, @Nonnull final T xmlObject, boolean overwrite) throws IOException;
/** * Generate an identifier object. * * @param profileRequestContext the current profile request context * @param format the identifier format to generate * * @return the identifier object, or null * @throws SAMLException if an error occurs generating an identifier */ @Nullable NameIdType generate(@Nonnull final ProfileRequestContext profileRequestContext, @Nonnull @NotEmpty final String format) throws SAMLException;
/** * Constructor. * * @param namespaceURI the namespace the element is in * @param elementLocalName the local name of the XML element this Object represents * @param namespacePrefix the prefix for the given namespace */ protected AbstractSignableSAMLObject(@Nullable final String namespaceURI, @Nonnull @NotEmpty final String elementLocalName, @Nullable final String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); }
/** * Return a prefix for logging messages for this component. * * @return a string for insertion at the beginning of any log messages */ @Nonnull @NotEmpty protected String getLogPrefix() { if (logPrefix == null) { logPrefix = "Profile Action " + getClass().getSimpleName() + ":"; } return logPrefix; }