public abstract class AuthenticationToken extends Object
AuthenticationToken
models the collection of components as an integer-indexed
and/or as a name-indexed collection that together form the complete "token".Constructor and Description |
---|
AuthenticationToken() |
Modifier and Type | Method and Description |
---|---|
abstract String |
get()
Return the first component within this token.
|
abstract String |
get(int index)
Retrieve the component at the specified index from this
AuthenticationToken object. |
abstract String |
get(String name)
Retrieve the named component from this
DefaultAuthenticationToken object. |
abstract String |
getScheme()
Return the authentication scheme (e.g. "Basic", etc) that
was used by the client to provide this token to the server.
|
abstract boolean |
isEmpty()
Return false iff any non-null components have been added to this token.
|
abstract int |
size()
Return the number of components comprising this
AuthenticationToken . |
public abstract String getScheme()
null
, i.e. if the
token data came from cookies.null
is no HTTP
authentication scheme was used to provide the token data.public abstract String get()
null
if no such component exists.public abstract String get(int index)
AuthenticationToken
object.index
- the index of the component to retrieveAuthenticationToken
object.public abstract String get(String name)
DefaultAuthenticationToken
object.name
- the name of the component to retrieveDefaultAuthenticationToken
object,
or null
if no such named component exists.public abstract int size()
AuthenticationToken
.AuthenticationToken
.public abstract boolean isEmpty()
Copyright © 2014. All Rights Reserved.