Package io.milton.http
Class Auth
java.lang.Object
io.milton.http.Auth
Holds authentication information for a request
There are two sets of information: - that which is present in the request -
that which is determined as part of performing authentication
Note that even if authentication fails, this object will still be available
in the request - DO NOT USE THE PRESENCE OF THIS OBJECT TO CHECK FOR A VALID
LOGIN!!!
Instead use the tag property. This will ONLY be not null after a successful
authentication
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCommon HTTP authentication schemes, and some non-http specified but common ones -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharsetgetNc()getNonce()getQop()getRealm()getTag()Holds application specific user data, as returned from the authenticate method on Resource This should be used to test for a valid login.getUri()getUser()booleanvoidsetNonceStale(boolean nonceStale) set by digest auth processing.voidSet after a successful authenticate method with a not-null value The actual value will be application dependenttoString()
-
Constructor Details
-
Auth
-
Auth
-
Auth
-
-
Method Details
-
getBasicParCharset
-
getUser
- Returns:
- - the user property in the request. This MIGHT NOT be an actual user
-
setTag
Set after a successful authenticate method with a not-null value The actual value will be application dependent- Parameters:
authTag-
-
getTag
Holds application specific user data, as returned from the authenticate method on Resource This should be used to test for a valid login.- Returns:
- some object identifying the user, normally returned from Resource.authenticate
-
getPassword
-
getScheme
-
getCnonce
-
getNc
-
getNonce
-
getQop
-
getRealm
-
getResponseDigest
-
getUri
-
isNonceStale
public boolean isNonceStale() -
setNonceStale
public void setNonceStale(boolean nonceStale) set by digest auth processing. Used to add stale nonce flag to challenge- Parameters:
nonceStale-
-
toString
-