@ThreadSafe public class UsernamePrincipalSerializer extends AbstractPrincipalSerializer<String>
UsernamePrincipal.| Modifier and Type | Field and Description |
|---|---|
private static Pattern |
JSON_PATTERN
Pattern used to determine if input is supported.
|
private org.slf4j.Logger |
log
Class logger.
|
private static String |
USERNAME_FIELD
Field name of
UsernamePrincipal. |
| Constructor and Description |
|---|
UsernamePrincipalSerializer() |
| Modifier and Type | Method and Description |
|---|---|
UsernamePrincipal |
deserialize(String value) |
String |
serialize(Principal principal) |
boolean |
supports(Principal principal) |
boolean |
supports(String value) |
getJsonGenerator, getJsonReaderdestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull @NotEmpty private static final String USERNAME_FIELD
UsernamePrincipal.@Nonnull private static final Pattern JSON_PATTERN
@Nonnull private final org.slf4j.Logger log
@Nonnull @NotEmpty public String serialize(@Nonnull Principal principal) throws IOException
IOException@Nullable public UsernamePrincipal deserialize(@Nonnull@NotEmpty String value) throws IOException
IOExceptionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.