@Immutable @ThreadSafe public abstract class AbstractLightToken extends Object implements ILightToken, Serializable
This abstract class representing the key of data exchange between EidasNode Core and MS-Specific parts. It is encapsulating a collection of information provided by the originator party. This is not the class for the HTTP session, check @see eu.eidas.auth.commons.tx.BinaryLightToken.
Modifier and Type | Class and Description |
---|---|
static class |
AbstractLightToken.AbstractBuilder<B extends AbstractLightToken.AbstractBuilder<B,T>,T extends ILightToken>
Abstract builder used to construct the AbstractLightToken
|
Modifier and Type | Field and Description |
---|---|
static org.joda.time.format.DateTimeFormatter |
LIGHTTOKEN_DATE_FORMAT
default DateTimeFormatter from Joda
|
static String |
SEPARATOR
default separator "|"
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractLightToken(AbstractLightToken.AbstractBuilder<?,?> builder) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.joda.time.DateTime |
getCreatedOn()
Returns with the timestamp when the Token was created.
|
String |
getFormattedCreatedOn()
Returns with the formatted, string representation of timestamp when the Token was created.
|
String |
getId()
Returns with the LightToken ID.
|
String |
getIssuer()
Returns with the Issuer (originator).
|
String |
getKey()
Returns with simple string token representation to be used as internal reference, as key of correlation.
|
int |
hashCode() |
String |
toString() |
protected StringBuilder |
toString(StringBuilder stringBuilder) |
static StringBuilder |
toString(StringBuilder stringBuilder,
ILightToken token) |
@Nonnull public static final String SEPARATOR
public static final org.joda.time.format.DateTimeFormatter LIGHTTOKEN_DATE_FORMAT
protected AbstractLightToken(@Nonnull AbstractLightToken.AbstractBuilder<?,?> builder)
@Nonnull public String getId()
getId
in interface ILightToken
@Nonnull public String getIssuer()
getIssuer
in interface ILightToken
@Nonnull public org.joda.time.DateTime getCreatedOn()
getCreatedOn
in interface ILightToken
@Nonnull public String getFormattedCreatedOn()
AbstractLightToken
LIGHTTOKEN_DATE_FORMAT dictates.getFormattedCreatedOn
in interface ILightToken
@Nonnull public String getKey()
getKey
in interface ILightToken
protected StringBuilder toString(@Nonnull StringBuilder stringBuilder)
public static StringBuilder toString(@Nonnull StringBuilder stringBuilder, @Nonnull ILightToken token)
Copyright © 2020. All Rights Reserved.