Package org.entur.jwt.client
Class AbstractClientCredentialsBuilder<B extends AbstractClientCredentialsBuilder<B>>
java.lang.Object
org.entur.jwt.client.AbstractClientCredentialsBuilder<B>
- Direct Known Subclasses:
Auth0ClientCredentialsBuilder,GenericClientCredentialsBuilder,KeycloakClientCredentialsBuilder
public abstract class AbstractClientCredentialsBuilder<B extends AbstractClientCredentialsBuilder<B>>
extends Object
Client Credentials builder scaffold
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected static final Stringprotected Stringprotected Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected intprotected Stringprotected Stringprotected Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ClientCredentialsbuild()protected ClientCredentialsbuild(boolean authorizationHeader) protected static StringcreateHeader(String clientId, String secret) protected DefaultClientCredentialswithAudience(String audience) withClientId(String clientId) withIssuePath(String issuePath) withPort(int port) withProtocol(String protocol) withRefreshPath(String refreshPath) withRevokePath(String revokePath) withSecret(String secret)
-
Field Details
-
KEY_AUDIENCE
- See Also:
-
KEY_SCOPE
- See Also:
-
HEADER_AUTHORIZATION
- See Also:
-
KEY_CLIENT_CREDENTIALS
- See Also:
-
KEY_GRANT_TYPE
- See Also:
-
KEY_CLIENT_ID
- See Also:
-
KEY_SECRET
- See Also:
-
protocol
-
port
protected int port -
host
-
issuePath
-
refreshPath
-
revokePath
-
clientId
-
secret
-
audience
-
scope
-
-
Constructor Details
-
AbstractClientCredentialsBuilder
public AbstractClientCredentialsBuilder()
-
-
Method Details
-
createHeader
-
withHost
-
withPort
-
withProtocol
-
withIssuePath
-
withRefreshPath
-
withRevokePath
-
withClientId
-
withSecret
-
withAudience
-
withScope
-
build
-
build
-
newClientCredentials
-