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
-
-
-
Method Detail
-
withAudience
public AuthenticationProvider.Builder withAudience(String audience)
-
withIssuer
public AuthenticationProvider.Builder withIssuer(String issuer)
-
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, RSAPublicKey publicKey, String issuer)
-
withPublicKey
public AuthenticationProvider.Builder withPublicKey(String keyId, RSAPublicKey publicKey)
-
withPublicKey
public AuthenticationProvider.Builder withPublicKey(String keyId, InputStream stream, String issuer) throws SRUConfigException
- Throws:
SRUConfigException
-
withPublicKey
public AuthenticationProvider.Builder withPublicKey(String keyId, InputStream stream) throws SRUConfigException
- Throws:
SRUConfigException
-
withPublicKey
public AuthenticationProvider.Builder withPublicKey(String keyId, File file, String issuer) throws SRUConfigException
- Throws:
SRUConfigException
-
withPublicKey
public AuthenticationProvider.Builder withPublicKey(String keyId, File file) throws SRUConfigException
- Throws:
SRUConfigException
-
build
public AuthenticationProvider build()
-
create
public static AuthenticationProvider.Builder create()
-
-