Class DockerResponseToken
- java.lang.Object
-
- org.keycloak.representations.JsonWebToken
-
- org.keycloak.representations.docker.DockerResponseToken
-
- All Implemented Interfaces:
Serializable
,Token
public class DockerResponseToken extends JsonWebToken
* { "iss": "auth.docker.com", "sub": "jlhawn", "aud": "registry.docker.com", "exp": 1415387315, "nbf": 1415387015, "iat": 1415387015, "jti": "tYJCO1c6cnyy7kAn0c7rKPgbV1H1bFws", "access": [ { "type": "repository", "name": "samalba/my-app", "actions": [ "push" ] } ] }- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<DockerAccess>
accessItems
-
Constructor Summary
Constructors Constructor Description DockerResponseToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DockerResponseToken
audience(String... audience)
DockerResponseToken
expiration(int expiration)
List<DockerAccess>
getAccessItems()
DockerResponseToken
id(String id)
DockerResponseToken
issuedAt(int issuedAt)
DockerResponseToken
issuedFor(String issuedFor)
DockerResponseToken
issuedNow()
Set issuedAt to the current timeDockerResponseToken
issuer(String issuer)
DockerResponseToken
notBefore(int notBefore)
DockerResponseToken
subject(String subject)
DockerResponseToken
type(String type)
-
Methods inherited from class org.keycloak.representations.JsonWebToken
addAudience, exp, getAudience, getCategory, getExp, getExpiration, getIat, getId, getIssuedAt, getIssuedFor, getIssuer, getNbf, getNotBefore, getOtherClaims, getSubject, getType, hasAnyAudience, hasAudience, iat, isActive, isActive, isExpired, isIssuedBeforeSessionStart, isNotBefore, nbf, setOtherClaims, setSubject
-
-
-
-
Field Detail
-
accessItems
protected List<DockerAccess> accessItems
-
-
Method Detail
-
getAccessItems
public List<DockerAccess> getAccessItems()
-
id
public DockerResponseToken id(String id)
- Overrides:
id
in classJsonWebToken
-
expiration
public DockerResponseToken expiration(int expiration)
- Overrides:
expiration
in classJsonWebToken
-
notBefore
public DockerResponseToken notBefore(int notBefore)
- Overrides:
notBefore
in classJsonWebToken
-
issuedNow
public DockerResponseToken issuedNow()
Description copied from class:JsonWebToken
Set issuedAt to the current time- Overrides:
issuedNow
in classJsonWebToken
-
issuedAt
public DockerResponseToken issuedAt(int issuedAt)
- Overrides:
issuedAt
in classJsonWebToken
-
issuer
public DockerResponseToken issuer(String issuer)
- Overrides:
issuer
in classJsonWebToken
-
audience
public DockerResponseToken audience(String... audience)
- Overrides:
audience
in classJsonWebToken
-
subject
public DockerResponseToken subject(String subject)
- Overrides:
subject
in classJsonWebToken
-
type
public DockerResponseToken type(String type)
- Overrides:
type
in classJsonWebToken
-
issuedFor
public DockerResponseToken issuedFor(String issuedFor)
- Overrides:
issuedFor
in classJsonWebToken
-
-