io.jsonwebtoken.impl.DefaultHeader Java Examples

The following examples show how to use io.jsonwebtoken.impl.DefaultHeader. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Jwts.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates a new {@link Header} instance suitable for <em>plaintext</em> (not digitally signed) JWTs.  As this
 * is a less common use of JWTs, consider using the {@link #jwsHeader()} factory method instead if you will later
 * digitally sign the JWT.
 *
 * @return a new {@link Header} instance suitable for <em>plaintext</em> (not digitally signed) JWTs.
 */
public static Header header() {
    return new DefaultHeader();
}