Class UserAgentContext

java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.authn.context.UserAgentContext
All Implemented Interfaces:
Iterable<BaseContext>

public final class UserAgentContext extends BaseContext
A context containing data about the user agent.
Parent:
ProfileRequestContext, AuthenticationContext
  • Field Details

    • address

      @Nullable private InetAddress address
      Address of the user-agent host.
    • identifier

      @Nullable private String identifier
      An identification string (such as a User-Agent header).
  • Constructor Details

    • UserAgentContext

      public UserAgentContext()
  • Method Details

    • getAddress

      @Nullable public InetAddress getAddress()
      Get the address of the user-agent host.
      Returns:
      address of the user-agent host
    • setAddress

      @Nonnull public UserAgentContext setAddress(@Nullable InetAddress userAgentAddress)
      Set the address of the user-agent host.
      Parameters:
      userAgentAddress - address of the user-agent host
      Returns:
      this context
    • getIdentifier

      @Nullable public String getIdentifier()
      Get the user agent identifier.
      Returns:
      identifier for the user agent
    • setIdentifier

      @Nonnull public UserAgentContext setIdentifier(@Nullable String id)
      Set the user agent identifier.
      Parameters:
      id - identifier for the user agent
      Returns:
      this context