Package net.shibboleth.idp.authn.context
Class UsernamePasswordContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.authn.context.UsernamePasswordContext
- All Implemented Interfaces:
Iterable<BaseContext>
Context that carries a username/password pair to be validated.
- Parent:
AuthenticationContext
- Added:
- After extracting a username/password pair during authentication
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the password associated with the username.Gets the transformed username after undergoing some kind of reformatting or normalization.Gets the username.setPassword
(String pass) Sets the password associated with the username.setTransformedUsername
(String name) Sets the transformed username.setUsername
(String name) Sets the username and resets the transformed version to be identical.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
username
The original username. -
transformedUsername
The transformed username. -
password
The password associated with the username.
-
-
Constructor Details
-
UsernamePasswordContext
public UsernamePasswordContext()
-
-
Method Details
-
getUsername
Gets the username.- Returns:
- the username
-
setUsername
Sets the username and resets the transformed version to be identical.- Parameters:
name
- the username- Returns:
- this context
-
getTransformedUsername
Gets the transformed username after undergoing some kind of reformatting or normalization.- Returns:
- the transformed username
- Since:
- 4.0.0
-
setTransformedUsername
Sets the transformed username.- Parameters:
name
- the username- Returns:
- this context
- Since:
- 4.0.0
-
getPassword
Gets the password associated with the username.- Returns:
- password associated with the username
-
setPassword
Sets the password associated with the username.- Parameters:
pass
- password associated with the username- Returns:
- this context
-