org.surfnet.oaaas.model
Class VerifyTokenResponse
java.lang.Object
org.surfnet.oaaas.model.VerifyTokenResponse
- All Implemented Interfaces:
- Serializable
public class VerifyTokenResponse
- extends Object
- implements Serializable
Representation of the answer to a Resource Server when asked to verify
a token.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerifyTokenResponse
public VerifyTokenResponse()
VerifyTokenResponse
public VerifyTokenResponse(String error)
VerifyTokenResponse
public VerifyTokenResponse(String audience,
List<String> scopes,
AuthenticatedPrincipal principal,
Long expiresIn)
getAudience
public String getAudience()
- Returns:
- the audience
setAudience
public void setAudience(String audience)
- Parameters:
audience - the audience to set
getScopes
public List<String> getScopes()
- Returns:
- the scopes
setScopes
public void setScopes(List<String> scopes)
- Parameters:
scopes - the scopes to set
getError
public String getError()
- Returns:
- the error
setError
public void setError(String error)
- Parameters:
error - the error to set
getExpiresIn
public Long getExpiresIn()
- Returns:
- the expiresIn
setExpiresIn
public void setExpiresIn(Long expiresIn)
- Parameters:
expiresIn - the expiresIn to set
getPrincipal
public AuthenticatedPrincipal getPrincipal()
- Returns:
- the principal
setPrincipal
public void setPrincipal(AuthenticatedPrincipal principal)
- Parameters:
principal - the principal to set
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.