Package net.webpdf.wsclient.session.auth
Interface AuthProvider
-
- All Known Subinterfaces:
OAuth2Provider
- All Known Implementing Classes:
AbstractAuthenticationProvider,AnonymousAuthProvider,UserAuthProvider
public interface AuthProviderA class implementing
AuthProvidershall provideAuthMaterialfor aSessionvia it´sprovide(Session)method.Be aware: An implementation of
AuthProvideris not required to serve multipleSessions at a time. It is expected to create a newAuthProviderfor each existingSession.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull AuthMaterialprovide(@NotNull Session session)Provides authorizationSessionTokenfor aSession.@NotNull AuthMaterialrefresh(Session session)Refresh authorizationSessionTokenfor an activeSession.
-
-
-
Method Detail
-
provide
@NotNull @NotNull AuthMaterial provide(@NotNull @NotNull Session session) throws AuthResultException
Provides authorizationSessionTokenfor aSession.- Parameters:
session- The session to provide authorization for.- Returns:
- The
AuthMaterialprovided by thisAuthProvider. - Throws:
AuthResultException- Shall be thrown, should the authentication/authorization fail for some reason.
-
refresh
@NotNull @NotNull AuthMaterial refresh(Session session) throws AuthResultException
Refresh authorizationSessionTokenfor an activeSession.- Parameters:
session- The session to refresh the authorization for.- Returns:
- The
AuthMaterialrefreshed by thisAuthProvider. - Throws:
AuthResultException- Shall be thrown, should the authentication/authorization fail for some reason.
-
-