Uses of Interface
net.webpdf.wsclient.session.auth.material.AuthMaterial
-
-
Uses of AuthMaterial in net.webpdf.wsclient.session.auth
Methods in net.webpdf.wsclient.session.auth that return AuthMaterial Modifier and Type Method Description protected @NotNull AuthMaterialAbstractAuthenticationProvider. getAuthMaterial()Returns the currently usedAuthMaterial.@NotNull AuthMaterialAbstractAuthenticationProvider. getInitialAuthMaterial()Returns the initialAuthMaterialgiven to thisAuthProvider.protected @NotNull AuthMaterialAbstractAuthenticationProvider. login(@NotNull Session session)Login and provide authorizationSessionTokenfor aSession.@NotNull AuthMaterialAbstractAuthenticationProvider. provide(@NotNull Session session)ProvidesAuthMaterialfor the authorization of aSession.
Will attempt to produce aSessionTokenforRestSessions.
Will also refresh expiredSessionTokens.@NotNull AuthMaterialAuthProvider. provide(@NotNull Session session)Provides authorizationSessionTokenfor aSession.@NotNull AuthMaterialAbstractAuthenticationProvider. refresh(Session session)Refresh authorizationSessionTokenfor an activeSession.@NotNull AuthMaterialAuthProvider. refresh(Session session)Refresh authorizationSessionTokenfor an activeSession.Methods in net.webpdf.wsclient.session.auth with parameters of type AuthMaterial Modifier and Type Method Description protected voidAbstractAuthenticationProvider. setAuthMaterial(@NotNull AuthMaterial authMaterial)Sets the usedAuthMaterial.Constructors in net.webpdf.wsclient.session.auth with parameters of type AuthMaterial Constructor Description AbstractAuthenticationProvider(@NotNull AuthMaterial authMaterial)Creates a fresh authentication provider, that shall initialize aSessionusing the givenAuthMaterial.
Be aware: possibly the givenAuthMaterialwill only be used during login and will be replaced with aSessionToken.AbstractAuthenticationProvider(@NotNull AuthMaterial authMaterial, AuthMaterial resumeAuthMaterial)Resumes an existing authentication provider, that shall resume aSessionif aSessionTokenis provided.UserAuthProvider(@NotNull String userName, char @NotNull [] password, AuthMaterial authMaterial)Resumes an existing authentication provider, that shall resume aSessionwith theAuthMaterialprovided.UserAuthProvider(@NotNull String userName, @NotNull String password, AuthMaterial authMaterial)Resumes an existing authentication provider, that shall resume aSessionwith theAuthMaterialprovided. -
Uses of AuthMaterial in net.webpdf.wsclient.session.auth.material
Classes in net.webpdf.wsclient.session.auth.material that implement AuthMaterial Modifier and Type Class Description classAnonymousMaterialAn instance ofAnonymousMaterialserves to establish an anonymousSessionvia theAnonymousAuthProvider.
None of the hereby implemented methods shall provide usable authentication or authorization material.classAuthenticationMaterialAn instance ofAuthenticationMaterialserves to establish a user basedSessionwith the webPDF server.
It shall both provideUsernamePasswordCredentialsfor a user, and a proper authorizationHeaderto communicate the authentication attempt to the server. -
Uses of AuthMaterial in net.webpdf.wsclient.session.auth.material.token
Subinterfaces of AuthMaterial in net.webpdf.wsclient.session.auth.material.token Modifier and Type Interface Description interfaceJWTTokenClasses in net.webpdf.wsclient.session.auth.material.token that implement AuthMaterial Modifier and Type Class Description classOAuth2TokenAn instance ofOAuth2Tokenwraps the access token of a webPDFSessionin an object.classSessionTokenAn instance ofSessionTokenwraps the access and refresh tokens provided by the webPDF server. -
Uses of AuthMaterial in net.webpdf.wsclient.session.connection.http
Methods in net.webpdf.wsclient.session.connection.http with parameters of type AuthMaterial Modifier and Type Method Description @NotNull HttpRestRequestHttpRestRequest. buildRequest(@NotNull HttpMethod httpMethod, @NotNull String path, @Nullable org.apache.hc.core5.http.HttpEntity httpEntity, @Nullable AuthMaterial authMaterial)Prepare theHttpRestRequestto execute the selectedHttpMethodon the given resource path (URI) and providing the givenHttpEntityas it´s data transfer object (parameters).@NotNull HttpRestRequestHttpRestRequest. buildRequest(@NotNull HttpMethod httpMethod, @NotNull URI uri, @Nullable org.apache.hc.core5.http.HttpEntity httpEntity, @Nullable AuthMaterial authMaterial)Prepare theHttpRestRequestto execute the selectedHttpMethodon the given (URI) and providing the givenHttpEntityas it´s data transfer object (parameters).
-