org.surfnet.oaaas.model
Class VerifyTokenResponse

java.lang.Object
  extended by 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

Constructor Summary
VerifyTokenResponse()
           
VerifyTokenResponse(String error)
           
VerifyTokenResponse(String audience, List<String> scopes, AuthenticatedPrincipal principal, Long expiresIn)
           
 
Method Summary
 String getAudience()
           
 String getError()
           
 Long getExpiresIn()
           
 AuthenticatedPrincipal getPrincipal()
           
 List<String> getScopes()
           
 void setAudience(String audience)
           
 void setError(String error)
           
 void setExpiresIn(Long expiresIn)
           
 void setPrincipal(AuthenticatedPrincipal principal)
           
 void setScopes(List<String> scopes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifyTokenResponse

public VerifyTokenResponse()

VerifyTokenResponse

public VerifyTokenResponse(String error)

VerifyTokenResponse

public VerifyTokenResponse(String audience,
                           List<String> scopes,
                           AuthenticatedPrincipal principal,
                           Long expiresIn)
Method Detail

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.