Class TrustMarkStatusRequest
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.AbstractRequest
-
- com.nimbusds.openid.connect.sdk.federation.api.FederationAPIRequest
-
- com.nimbusds.openid.connect.sdk.federation.api.TrustMarkStatusRequest
-
@Immutable public class TrustMarkStatusRequest extends FederationAPIRequest
Trust mark status request.Related specifications:
- OpenID Connect Federation 1.0, section 7.4.1.
-
-
Constructor Summary
Constructors Constructor Description TrustMarkStatusRequest(URI endpoint, com.nimbusds.jwt.SignedJWT trustMark)
Creates a new trust mark status request.TrustMarkStatusRequest(URI endpoint, Subject subject, Identifier id, Date iat)
Creates a new trust mark status request.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Identifier
getID()
Returns the trust mark ID.Date
getIssueTime()
Returns the trust mark issue time.Subject
getSubject()
Returns the trust mark subject.EntityID
getSubjectEntityID()
Returns the trust mark subject entity ID.com.nimbusds.jwt.SignedJWT
getTrustMark()
Returns the trust mark.static TrustMarkStatusRequest
parse(HTTPRequest httpRequest)
Parses a trust mark status request from the specified HTTP request.static TrustMarkStatusRequest
parse(Map<String,List<String>> params)
Parses a trust mark status request from the specified request parameters.HTTPRequest
toHTTPRequest()
Returns the matching HTTP request.Map<String,List<String>>
toParameters()
Returns the request parameters.-
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest
getEndpointURI
-
-
-
-
Constructor Detail
-
TrustMarkStatusRequest
public TrustMarkStatusRequest(URI endpoint, Subject subject, Identifier id, Date iat)
Creates a new trust mark status request.- Parameters:
endpoint
- The trust mark status endpoint. Must not benull
.subject
- The subject. Must not benull
.id
- The trust mark identifier. Must not benull
.iat
- The trust mark issue time,null
if not specified.
-
TrustMarkStatusRequest
public TrustMarkStatusRequest(URI endpoint, com.nimbusds.jwt.SignedJWT trustMark)
Creates a new trust mark status request.- Parameters:
endpoint
- The trust mark status endpoint. Must not benull
.trustMark
- The trust mark. Must not benull
.
-
-
Method Detail
-
getSubject
public Subject getSubject()
Returns the trust mark subject.- Returns:
- The trust mark subject,
null
if not specified.
-
getSubjectEntityID
public EntityID getSubjectEntityID()
Returns the trust mark subject entity ID.- Returns:
- The trust mark subject entity ID,
null
if not specified.
-
getID
public Identifier getID()
Returns the trust mark ID.- Returns:
- The trust mark ID,
null
if not specified.
-
getIssueTime
public Date getIssueTime()
Returns the trust mark issue time.- Returns:
- The trust mark issue time,
null
if not specified.
-
getTrustMark
public com.nimbusds.jwt.SignedJWT getTrustMark()
Returns the trust mark.- Returns:
- The trust mark,
null
if not specified.
-
toParameters
public Map<String,List<String>> toParameters()
Description copied from class:FederationAPIRequest
Returns the request parameters.- Specified by:
toParameters
in classFederationAPIRequest
- Returns:
- The request parameters.
-
toHTTPRequest
public HTTPRequest toHTTPRequest()
Description copied from interface:Request
Returns the matching HTTP request.- Specified by:
toHTTPRequest
in interfaceRequest
- Overrides:
toHTTPRequest
in classFederationAPIRequest
- Returns:
- The HTTP request.
-
parse
public static TrustMarkStatusRequest parse(Map<String,List<String>> params) throws ParseException
Parses a trust mark status request from the specified request parameters.- Parameters:
params
- The request parameters. Must not benull
.- Returns:
- The trust mark status request.
- Throws:
ParseException
- If parsing failed.
-
parse
public static TrustMarkStatusRequest parse(HTTPRequest httpRequest) throws ParseException
Parses a trust mark status request from the specified HTTP request.- Parameters:
httpRequest
- The HTTP request. Must not benull
.- Returns:
- The trust negotiation request.
- Throws:
ParseException
- If parsing failed.
-
-