Class UsernamePrincipalSerializer

  • All Implemented Interfaces:
    net.shibboleth.idp.authn.principal.PrincipalSerializer<String>, net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent

    @ThreadSafe
    public class UsernamePrincipalSerializer
    extends net.shibboleth.idp.authn.principal.AbstractPrincipalSerializer<String>
    Principal serializer for UsernamePrincipal.
    • Field Detail

      • USERNAME_FIELD

        @Nonnull
        @NotEmpty
        private static final String USERNAME_FIELD
        Field name of UsernamePrincipal.
        See Also:
        Constant Field Values
      • JSON_PATTERN

        @Nonnull
        private static final Pattern JSON_PATTERN
        Pattern used to determine if input is supported.
      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
    • Constructor Detail

      • UsernamePrincipalSerializer

        public UsernamePrincipalSerializer()
    • Method Detail

      • supports

        public boolean supports​(@Nonnull
                                Principal principal)
      • supports

        public boolean supports​(@Nonnull @NotEmpty
                                String value)
      • deserialize

        @Nullable
        public net.shibboleth.idp.authn.principal.UsernamePrincipal deserialize​(@Nonnull @NotEmpty
                                                                                String value)
                                                                         throws IOException
        Throws:
        IOException