Package eu.clarin.sru.server.fcs.utils
Class AuthenticationProvider.Builder
- java.lang.Object
-
- eu.clarin.sru.server.fcs.utils.AuthenticationProvider.Builder
-
- Enclosing class:
- AuthenticationProvider
public static class AuthenticationProvider.Builder extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationProvider
build()
static AuthenticationProvider.Builder
create()
AuthenticationProvider.Builder
withAudience(String audience)
AuthenticationProvider.Builder
withExpiresAt(long leeway)
AuthenticationProvider.Builder
withIgnoreIssuedAt()
AuthenticationProvider.Builder
withIssuedAt(long leeway)
AuthenticationProvider.Builder
withNotBefore(long leeway)
AuthenticationProvider.Builder
withPublicKey(String keyId, File file)
AuthenticationProvider.Builder
withPublicKey(String keyId, InputStream stream)
-
-
-
Method Detail
-
withAudience
public AuthenticationProvider.Builder withAudience(String audience)
-
withIgnoreIssuedAt
public AuthenticationProvider.Builder withIgnoreIssuedAt()
-
withIssuedAt
public AuthenticationProvider.Builder withIssuedAt(long leeway)
-
withExpiresAt
public AuthenticationProvider.Builder withExpiresAt(long leeway)
-
withNotBefore
public AuthenticationProvider.Builder withNotBefore(long leeway)
-
withPublicKey
public AuthenticationProvider.Builder withPublicKey(String keyId, File file) throws SRUConfigException
- Throws:
SRUConfigException
-
withPublicKey
public AuthenticationProvider.Builder withPublicKey(String keyId, InputStream stream) throws SRUConfigException
- Throws:
SRUConfigException
-
build
public AuthenticationProvider build()
-
create
public static AuthenticationProvider.Builder create()
-
-