public class SAD extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SAD.Extension
Represents the SAD Extension claim as described in section 3.2.1.2 of the
"Signature Activation Protocol for Federated Signing" specification.
|
Constructor and Description |
---|
SAD() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static SAD |
fromJson(String json)
Creates a
SAD object from its JSON representation. |
String |
getAudience()
Returns the entityID of the Signature Service which is the recipient of this SAD.
|
Integer |
getExpiry()
Returns the time when this SAD is no longer valid (epoch time/seconds since 1970-01-01).
|
org.joda.time.DateTime |
getExpiryDateTime()
Returns the time when this SAD is no longer valid as a
DateTime instance. |
Integer |
getIssuedAt()
Returns the time when this SAD was issued (epoch time/seconds since 1970-01-01).
|
org.joda.time.DateTime |
getIssuedAtDateTime()
Returns the time when this SAD was issued as a
DateTime instance. |
String |
getIssuer()
Returns the entityID of the IdP that generated this SAD.
|
String |
getJwtId()
Returns the unique identifier of this JWT.
|
SAD.Extension |
getSeElnSadext()
Returns the SAD extension claim.
|
String |
getSubject()
Returns the attribute value of the signer's unique identifier attribute.
|
int |
hashCode() |
void |
setAudience(String audience)
Assigns the entityID of the Signature Service which is the recipient of this SAD.
|
void |
setExpiry(org.joda.time.DateTime expiry)
Assigns the time when this SAD is no longer valid.
|
void |
setExpiry(Integer expiry)
Assigns the time when this SAD is no longer valid (epoch time/seconds since 1970-01-01).
|
void |
setIssuedAt(org.joda.time.DateTime issuedAt)
Assigns the time when this SAD was issued.
|
void |
setIssuedAt(Integer issuedAt)
Assigns the time when this SAD was issued (epoch time/seconds since 1970-01-01).
|
void |
setIssuer(String issuer)
Assigns the entityID of the IdP that generated this SAD.
|
void |
setJwtId(String jwtId)
Assigns the unique identifier of this JWT.
|
void |
setSeElnSadext(SAD.Extension seElnSadext)
Assigns the SAD extension claim.
|
void |
setSubject(String subject)
Assigns the attribute value of the signer's unique identifier attribute.
|
String |
toJson()
Serializes the SAD object into its JSON representation.
|
byte[] |
toJsonBytes()
Serializes the SAD object into its JSON byte representation.
|
String |
toString() |
public static SAD fromJson(String json) throws IOException
SAD
object from its JSON representation.json
- the JSON representationSAD
objectIOException
- for parsing errorspublic String toJson() throws IOException
IOException
- for processing errorspublic byte[] toJsonBytes() throws IOException
IOException
- for processing errorspublic String getSubject()
public void setSubject(String subject)
subject
- the user IDpublic String getAudience()
public void setAudience(String audience)
audience
- the entityID of the recipientpublic String getIssuer()
public void setIssuer(String issuer)
issuer
- the IdP entityIDpublic Integer getExpiry()
public org.joda.time.DateTime getExpiryDateTime()
DateTime
instance.public void setExpiry(Integer expiry)
expiry
- number of seconds since 1970-01-01public void setExpiry(org.joda.time.DateTime expiry)
expiry
- expiration timepublic Integer getIssuedAt()
public org.joda.time.DateTime getIssuedAtDateTime()
DateTime
instance.public void setIssuedAt(Integer issuedAt)
issuedAt
- number of seconds since 1970-01-01public void setIssuedAt(org.joda.time.DateTime issuedAt)
issuedAt
- issue timepublic String getJwtId()
public void setJwtId(String jwtId)
jwtId
- JWT IDpublic SAD.Extension getSeElnSadext()
public void setSeElnSadext(SAD.Extension seElnSadext)
seElnSadext
- SAD extension claimCopyright © 2018 Litsec AB. All rights reserved.