Package org.restlet.data
Class ChallengeScheme
java.lang.Object
org.restlet.data.ChallengeScheme
Challenge scheme used to authenticate remote clients.
- Author:
- Jerome Louvel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChallengeSchemeCustom scheme based on IP address or cookies or query parameters, etc.static final ChallengeSchemePlain FTP scheme.static final ChallengeSchemeAmazon Query String HTTP scheme.static final ChallengeSchemeAmazon Query String HTTP scheme.static final ChallengeSchemeAmazon S3 HTTP scheme.static final ChallengeSchemeMicrosoft Azure Shared Key scheme.static final ChallengeSchemeMicrosoft Azure Shared Key lite scheme.static final ChallengeSchemeBasic HTTP scheme.static final ChallengeSchemeCookie HTTP scheme.static final ChallengeSchemeDigest HTTP scheme.static final ChallengeSchemeMicrosoft NTML HTTP scheme.static final ChallengeSchemeOAuth 1.0 HTTP scheme.static final ChallengeSchemeOAuth Bearer HTTP scheme.static final ChallengeSchemeOAuth MAC HTTP scheme. -
Constructor Summary
ConstructorsConstructorDescriptionChallengeScheme(String name, String technicalName) Constructor.ChallengeScheme(String name, String technicalName, String description) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the description.getName()Returns the name.Returns the technical name (ex: BASIC).inthashCode()toString()Returns the name.static ChallengeSchemeReturns the challenge scheme associated to a scheme name.
-
Field Details
-
CUSTOM
Custom scheme based on IP address or cookies or query parameters, etc. -
FTP_PLAIN
Plain FTP scheme. -
HTTP_AWS_IAM
Amazon Query String HTTP scheme. -
HTTP_AWS_QUERY
Amazon Query String HTTP scheme. -
HTTP_AWS_S3
Amazon S3 HTTP scheme. -
HTTP_AZURE_SHAREDKEY
Microsoft Azure Shared Key scheme.- See Also:
-
HTTP_AZURE_SHAREDKEY_LITE
Microsoft Azure Shared Key lite scheme.- See Also:
-
HTTP_BASIC
Basic HTTP scheme. -
HTTP_COOKIE
Cookie HTTP scheme. -
HTTP_DIGEST
Digest HTTP scheme. -
HTTP_NTLM
Microsoft NTML HTTP scheme. -
HTTP_OAUTH
OAuth 1.0 HTTP scheme. Removed in later drafts and final OAuth 2.0 specification. -
HTTP_OAUTH_BEARER
OAuth Bearer HTTP scheme. -
HTTP_OAUTH_MAC
OAuth MAC HTTP scheme.
-
-
Constructor Details
-
ChallengeScheme
Constructor.- Parameters:
name- The unique name.technicalName- The technical name.
-
ChallengeScheme
Constructor.- Parameters:
name- The unique name.technicalName- The technical name.description- The description.
-
-
Method Details
-
valueOf
Returns the challenge scheme associated to a scheme name. If an existing constant exists then it is returned, otherwise a new instance is created.- Parameters:
name- The scheme name.- Returns:
- The associated challenge scheme.
-
equals
-
getDescription
Returns the description.- Returns:
- The description.
-
getName
Returns the name.- Returns:
- The name.
-
getTechnicalName
Returns the technical name (ex: BASIC).- Returns:
- The technical name (ex: BASIC).
-
hashCode
public int hashCode() -
toString
Returns the name.
-