@ThreadSafe public class DuoPrincipalSerializer extends AbstractPrincipalSerializer<String>
DuoPrincipal.| Modifier and Type | Field and Description |
|---|---|
private static String |
DUO_FIELD
Field name of
DuoPrincipal. |
private static Pattern |
JSON_PATTERN
Pattern used to determine if input is supported.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
DuoPrincipalSerializer() |
| Modifier and Type | Method and Description |
|---|---|
DuoPrincipal |
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 DUO_FIELD
DuoPrincipal.@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 DuoPrincipal deserialize(@Nonnull@NotEmpty String value) throws IOException
IOExceptionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.