Package net.shibboleth.idp.authn.context
Class UserAgentContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.authn.context.UserAgentContext
- All Implemented Interfaces:
Iterable<BaseContext>
A context containing data about the user agent.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate InetAddressAddress of the user-agent host.private StringAn identification string (such as a User-Agent header). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the address of the user-agent host.Get the user agent identifier.setAddress(InetAddress userAgentAddress) Set the address of the user-agent host.setIdentifier(String id) Set the user agent identifier.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
address
Address of the user-agent host. -
identifier
An identification string (such as a User-Agent header).
-
-
Constructor Details
-
UserAgentContext
public UserAgentContext()
-
-
Method Details
-
getAddress
Get the address of the user-agent host.- Returns:
- address of the user-agent host
-
setAddress
Set the address of the user-agent host.- Parameters:
userAgentAddress- address of the user-agent host- Returns:
- this context
-
getIdentifier
Get the user agent identifier.- Returns:
- identifier for the user agent
-
setIdentifier
Set the user agent identifier.- Parameters:
id- identifier for the user agent- Returns:
- this context
-