public class TokenAuthenticationService
extends java.lang.Object
| Constructor | Description |
|---|---|
TokenAuthenticationService(java.lang.String secret) |
Configure the service with a string secret.
|
TokenAuthenticationService(java.lang.String secret,
long expirationTime) |
|
TokenAuthenticationService(java.security.PrivateKey privateKey,
java.security.PublicKey publicKey) |
Configure the service with a public/private key pair.
|
TokenAuthenticationService(java.security.PublicKey publicKey) |
Configure the service with a public key.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAuthentication(javax.servlet.http.HttpServletResponse response,
java.lang.String username) |
|
boolean |
canIssueTokens() |
|
org.springframework.security.core.Authentication |
getAuthentication(javax.servlet.http.HttpServletRequest request) |
public TokenAuthenticationService(java.lang.String secret)
secret - a secretpublic TokenAuthenticationService(java.security.PrivateKey privateKey,
java.security.PublicKey publicKey)
privateKey - the private keypublicKey - the public keypublic TokenAuthenticationService(java.security.PublicKey publicKey)
publicKey - the public keypublic TokenAuthenticationService(java.lang.String secret,
long expirationTime)
public boolean canIssueTokens()
public void addAuthentication(javax.servlet.http.HttpServletResponse response,
java.lang.String username)
public org.springframework.security.core.Authentication getAuthentication(javax.servlet.http.HttpServletRequest request)
Copyright © 2018. All rights reserved.