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