Class AnonymousMaterial
- java.lang.Object
-
- net.webpdf.wsclient.session.auth.material.AnonymousMaterial
-
- All Implemented Interfaces:
AuthMaterial
public class AnonymousMaterial extends Object implements AuthMaterial
An instance of
AnonymousMaterialserves to establish an anonymousSessionvia theAnonymousAuthProvider.
None of the hereby implemented methods shall provide usable authentication or authorization material.
-
-
Constructor Summary
Constructors Constructor Description AnonymousMaterial()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable org.apache.hc.core5.http.HeadergetAuthHeader()AnonymousMaterialdoes not provide authorizationHeaders.@Nullable org.apache.hc.client5.http.auth.CredentialsgetCredentials()AnonymousMaterialdoes not provide authenticationCredentials.@Nullable StringgetRawAuthHeader()AnonymousMaterialdoes not provide authorization material.@NotNull StringgetToken()Returns the raw String token, that shall be passed to the authorizationHeader.
-
-
-
Method Detail
-
getCredentials
@Nullable public @Nullable org.apache.hc.client5.http.auth.Credentials getCredentials()
AnonymousMaterialdoes not provide authenticationCredentials.- Specified by:
getCredentialsin interfaceAuthMaterial- Returns:
- Always
null.
-
getAuthHeader
@Nullable public @Nullable org.apache.hc.core5.http.Header getAuthHeader()
AnonymousMaterialdoes not provide authorizationHeaders.- Specified by:
getAuthHeaderin interfaceAuthMaterial- Returns:
- Always
null. - See Also:
AuthMaterial.getRawAuthHeader()
-
getRawAuthHeader
@Nullable public @Nullable String getRawAuthHeader()
AnonymousMaterialdoes not provide authorization material.- Specified by:
getRawAuthHeaderin interfaceAuthMaterial- Returns:
- Always
null.
-
getToken
@NotNull public @NotNull String getToken()
Returns the raw String token, that shall be passed to the authorizationHeader.- Specified by:
getTokenin interfaceAuthMaterial- Returns:
- The raw String token, that shall be passed to the authorization
Header.
-
-