Class ProxyAuthenticationPrincipalSerializer

  • 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 ProxyAuthenticationPrincipalSerializer
    extends net.shibboleth.idp.authn.principal.AbstractPrincipalSerializer<String>
    Principal serializer for ProxyAuthenticationPrincipal.
    • Field Detail

      • PROXY_AUTH_FIELD

        @Nonnull
        @NotEmpty
        private static final String PROXY_AUTH_FIELD
        Field name of authority content.
        See Also:
        Constant Field Values
      • PROXY_COUNT_FIELD

        @Nonnull
        @NotEmpty
        private static final String PROXY_COUNT_FIELD
        Field name of proxy count.
        See Also:
        Constant Field Values
      • PROXY_AUD_FIELD

        @Nonnull
        @NotEmpty
        private static final String PROXY_AUD_FIELD
        Field name of proxy audiences.
        See Also:
        Constant Field Values
      • JSON_PATTERN

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

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

        @Nonnull
        private final javax.json.JsonBuilderFactory objectBuilderFactory
        JSON object bulder factory.
    • Constructor Detail

      • ProxyAuthenticationPrincipalSerializer

        public ProxyAuthenticationPrincipalSerializer()
        Constructor.
    • 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.ProxyAuthenticationPrincipal deserialize​(@Nonnull @NotEmpty
                                                                                           String value)
                                                                                    throws IOException
        Throws:
        IOException
      • getJsonObjectBuilder

        @Nonnull
        private javax.json.JsonObjectBuilder getJsonObjectBuilder()
        Get a JsonObjectBuilder in a thread-safe manner.
        Returns:
        an object builder
      • getJsonArrayBuilder

        @Nonnull
        private javax.json.JsonArrayBuilder getJsonArrayBuilder()
        Get a JsonArrayBuilder in a thread-safe manner.
        Returns:
        an array builder