Class Token
- java.lang.Object
-
- org.apache.archiva.redback.rest.api.model.v2.Token
-
-
Constructor Summary
Constructors Constructor Description Token()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
getCreated()
OffsetDateTime
getExpires()
String
getKey()
String
getPrincipal()
String
getPurpose()
static Token
of(String key, Instant created, Instant expires, String principal, String purpose)
static Token
of(String key, Date created, Date expires, String principal, String purpose)
static Token
of(AuthenticationKey key)
void
setCreated(OffsetDateTime created)
void
setCreatedFromInstant(Instant created)
void
setExpires(OffsetDateTime expires)
void
setExpiresFromInstant(Instant expires)
void
setKey(String key)
void
setPrincipal(String principal)
void
setPurpose(String purpose)
-
-
-
Constructor Detail
-
Token
public Token()
-
-
Method Detail
-
of
public static Token of(AuthenticationKey key)
-
of
public static Token of(String key, Date created, Date expires, String principal, String purpose)
-
of
public static Token of(String key, Instant created, Instant expires, String principal, String purpose)
-
getCreated
public OffsetDateTime getCreated()
-
setCreatedFromInstant
public void setCreatedFromInstant(Instant created)
-
setCreated
public void setCreated(OffsetDateTime created)
-
getExpires
public OffsetDateTime getExpires()
-
setExpiresFromInstant
public void setExpiresFromInstant(Instant expires)
-
setExpires
public void setExpires(OffsetDateTime expires)
-
getPrincipal
public String getPrincipal()
-
setPrincipal
public void setPrincipal(String principal)
-
getPurpose
public String getPurpose()
-
setPurpose
public void setPurpose(String purpose)
-
-