Class EntityListingResponse
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.api.EntityListingResponse
-
- Direct Known Subclasses:
EntityListingErrorResponse
,EntityListingSuccessResponse
public abstract class EntityListingResponse extends Object implements Response
Entity listing response.Related specifications:
- OpenID Connect Federation 1.0, sections 6.3.2 and 6.4.
-
-
Constructor Summary
Constructors Constructor Description EntityListingResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EntityListingResponse
parse(HTTPResponse httpResponse)
Parses an entity listing response from the specified HTTP response.EntityListingErrorResponse
toErrorResponse()
Casts this response to an entity listing error response.EntityListingSuccessResponse
toSuccessResponse()
Casts this response to an entity listing success response.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.nimbusds.oauth2.sdk.Response
indicatesSuccess, toHTTPResponse
-
-
-
-
Constructor Detail
-
EntityListingResponse
public EntityListingResponse()
-
-
Method Detail
-
toSuccessResponse
public EntityListingSuccessResponse toSuccessResponse()
Casts this response to an entity listing success response.- Returns:
- The entity listing success response.
-
toErrorResponse
public EntityListingErrorResponse toErrorResponse()
Casts this response to an entity listing error response.- Returns:
- The entity listing error response.
-
parse
public static EntityListingResponse parse(HTTPResponse httpResponse) throws ParseException
Parses an entity listing response from the specified HTTP response.- Parameters:
httpResponse
- The HTTP response. Must not benull
.- Returns:
- The entity listing response.
- Throws:
ParseException
- If parsing failed.
-
-