Class FederationEntityMetadata
java.lang.Object
com.nimbusds.openid.connect.sdk.federation.entities.FederationEntityMetadata
Federation entity metadata.
Related specifications:
- OpenID Connect Federation 1.0, section 4.8.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new federation entity metadata.FederationEntityMetadata(URI federationFetchEndpoint) Creates a new federation entity metadata. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity contacts.Gets the federation fetch endpoint.Gets the federation list endpoint.Gets the federation resolve endpoint.Gets the federation trust mark status endpoint.Gets the homepage URI.Gets the logo URI.Gets the organisation name.Gets the conditions and policies documentation URI.static FederationEntityMetadataParses a federation entity metadata from the specified JSON object string.static FederationEntityMetadataparse(net.minidev.json.JSONObject jsonObject) Parses a federation entity metadata from the specified a JSON object.voidsetContacts(List<String> contacts) Sets the entity contacts.voidsetFederationFetchEndpointURI(URI federationFetchEndpoint) Sets the federation fetch endpoint.voidsetFederationListEndpointURI(URI federationListEndpoint) Sets the federation list endpoint.voidsetFederationResolveEndpointURI(URI federationResolveEndpoint) Sets the federation resolve endpoint.voidsetFederationTrustMarkStatusEndpointURI(URI federationTrustMarkStatusEndpoint) Sets the federation trust mark status endpoint.voidsetHomepageURI(URI homepageURI) Sets the homepage URI.voidsetLogoURI(URI logoURI) Sets the logo URI.voidsetOrganizationName(String organizationName) Sets the organisation name.voidsetPolicyURI(URI policyURI) Sets the conditions and policies documentation URI.net.minidev.json.JSONObjectReturns a JSON object representation of this federation entity metadata.
-
Constructor Details
-
FederationEntityMetadata
public FederationEntityMetadata()Creates a new federation entity metadata. -
FederationEntityMetadata
Creates a new federation entity metadata.- Parameters:
federationFetchEndpoint- The federation fetch endpoint, required for trust anchors and intermediate entities, optional for leaf entities.
-
-
Method Details
-
getFederationFetchEndpointURI
Gets the federation fetch endpoint. Corresponds to thefederation_fetch_endpointmetadata field.- Returns:
- The federation fetch endpoint,
nullif not specified.
-
setFederationFetchEndpointURI
Sets the federation fetch endpoint. Corresponds to thefederation_fetch_endpointmetadata field.- Parameters:
federationFetchEndpoint- The federation fetch endpoint,nullif not specified.
-
getFederationListEndpointURI
Gets the federation list endpoint. Corresponds to thefederation_list_endpointmetadata field.- Returns:
- The federation list endpoint,
nullif not specified.
-
setFederationListEndpointURI
Sets the federation list endpoint. Corresponds to thefederation_list_endpointmetadata field.- Parameters:
federationListEndpoint- The federation list endpoint,nullif not specified.
-
getFederationResolveEndpointURI
Gets the federation resolve endpoint. Corresponds to thefederation_resolve_endpointmetadata field.- Returns:
- The federation resolve endpoint,
nullif not specified.
-
setFederationResolveEndpointURI
Sets the federation resolve endpoint. Corresponds to thefederation_resolve_endpointmetadata field.- Parameters:
federationResolveEndpoint- The federation resolve endpoint,nullif not specified.
-
getFederationTrustMarkStatusEndpointURI
Gets the federation trust mark status endpoint.- Returns:
- The federation trust mark status endpoint,
nullif not specified.
-
setFederationTrustMarkStatusEndpointURI
Sets the federation trust mark status endpoint.- Parameters:
federationTrustMarkStatusEndpoint- The federation trust mark status endpoint,nullif not specified.
-
getOrganizationName
Gets the organisation name. Corresponds to theorganization_namemetadata field.- Returns:
- The organisation name,
nullif not specified.
-
setOrganizationName
Sets the organisation name. Corresponds to theorganization_namemetadata field.- Parameters:
organizationName- The organisation name,nullif not specified.
-
getContacts
Gets the entity contacts. Corresponds to thecontactsmetadata field.- Returns:
- The contacts, such as names, e-mail addresses and phone
numbers,
nullif not specified.
-
setContacts
Sets the entity contacts. Corresponds to thecontactsmetadata field.- Parameters:
contacts- The contacts, such as names, e-mail addresses and phone numbers,nullif not specified.
-
getLogoURI
Gets the logo URI. Corresponds to thelogo_urimetadata field.- Returns:
- The logo URI,
nullif not specified.
-
setLogoURI
Sets the logo URI. Corresponds to thelogo_urimetadata field.- Parameters:
logoURI- The logo URI,nullif not specified.
-
getPolicyURI
Gets the conditions and policies documentation URI. Corresponds to thepolicy_urimetadata field.- Returns:
- The policy URI,
nullif not specified.
-
setPolicyURI
Sets the conditions and policies documentation URI. Corresponds to thepolicy_urimetadata field.- Parameters:
policyURI- The policy URI,nullif not specified.
-
getHomepageURI
Gets the homepage URI. Corresponds to thehomepage_urimetadata field.- Returns:
- The homepage URI,
nullif not specified.
-
setHomepageURI
Sets the homepage URI. Corresponds to thehomepage_urimetadata field.- Parameters:
homepageURI- The homepage URI,nullif not specified.
-
toJSONObject
Returns a JSON object representation of this federation entity metadata.Example:
{ "federation_fetch_endpoint" : "https://example.com/federation_fetch", "federation_list_endpoint" : "https://example.com/federation_list", "federation_trust_mark_status_endpoint" : "https://example.com/federation_status", "name" : "The example cooperation", "homepage_uri" : "https://www.example.com" }- Returns:
- The JSON object.
-
parse
public static FederationEntityMetadata parse(net.minidev.json.JSONObject jsonObject) throws ParseException Parses a federation entity metadata from the specified a JSON object.Example:
{ "federation_fetch_endpoint" : "https://example.com/federation_fetch", "federation_list_endpoint" : "https://example.com/federation_list", "name" : "The example cooperation", "homepage_uri" : "https://www.example.com" }- Parameters:
jsonObject- The JSON object. Must not benull.- Returns:
- The federation entity metadata.
- Throws:
ParseException- If parsing failed.
-
parse
Parses a federation entity metadata from the specified JSON object string.Example:
{ "federation_fetch_endpoint" : "https://example.com/federation_fetch", "federation_list_endpoint" : "https://example.com/federation_list", "federation_trust_mark_status_endpoint" : "https://example.com/federation_status", "name" : "The example cooperation", "homepage_uri" : "https://www.example.com" }- Parameters:
json- The JSON object string. Must not benull.- Returns:
- The federation entity metadata.
- Throws:
ParseException- If parsing failed.
-