Class EntityListingSuccessResponse
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.api.EntityListingResponse
-
- com.nimbusds.openid.connect.sdk.federation.api.EntityListingSuccessResponse
-
@Immutable public class EntityListingSuccessResponse extends EntityListingResponse
Entity listing success response.Related specifications:
- OpenID Connect Federation 1.0, section 7.3.2.
-
-
Constructor Summary
Constructors Constructor Description EntityListingSuccessResponse(List<EntityID> entityIDS)Creates a new entity listing success response.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EntityID>getEntityListing()Returns the entity IDs.booleanindicatesSuccess()Checks if the response indicates success.static EntityListingSuccessResponseparse(HTTPResponse httpResponse)Parses an entity listing success response from the specified HTTP response.static EntityListingSuccessResponseparse(net.minidev.json.JSONArray jsonArray)Parses an entity listing success response from the specified JSON array.HTTPResponsetoHTTPResponse()Returns the matching HTTP response.-
Methods inherited from class com.nimbusds.openid.connect.sdk.federation.api.EntityListingResponse
toErrorResponse, toSuccessResponse
-
-
-
-
Constructor Detail
-
EntityListingSuccessResponse
public EntityListingSuccessResponse(List<EntityID> entityIDS)
Creates a new entity listing success response.- Parameters:
entityIDS- The entity IDs. Must not benull.
-
-
Method Detail
-
getEntityListing
public List<EntityID> getEntityListing()
Returns the entity IDs.- Returns:
- The entity IDs.
-
indicatesSuccess
public boolean indicatesSuccess()
Description copied from interface:ResponseChecks if the response indicates success.- Returns:
trueif the response indicates success, elsefalse.
-
toHTTPResponse
public HTTPResponse toHTTPResponse()
Description copied from interface:ResponseReturns the matching HTTP response.- Returns:
- The HTTP response.
-
parse
public static EntityListingSuccessResponse parse(net.minidev.json.JSONArray jsonArray)
Parses an entity listing success response from the specified JSON array.- Parameters:
jsonArray- The JSON array. Must not benull.- Returns:
- The entity listing success response.
-
parse
public static EntityListingSuccessResponse parse(HTTPResponse httpResponse) throws ParseException
Parses an entity listing success response from the specified HTTP response.- Parameters:
httpResponse- The HTTP response. Must not benull.- Returns:
- The entity listing success response.
- Throws:
ParseException- If parsing failed.
-
-