Class SoftwareStatement.Builder

java.lang.Object
org.forgerock.openig.fapi.dcr.SoftwareStatement.Builder
Enclosing class:
SoftwareStatement

public static final class SoftwareStatement.Builder extends Object
Builder of SoftwareStatements.
  • Method Details

    • issuer

      public SoftwareStatement.Builder issuer(String issuer)
      Set the issuer name of the Trusted Directory that issued the software statement.
      Parameters:
      issuer - the issuer name
      Returns:
      this builder
    • organisationId

      public SoftwareStatement.Builder organisationId(String organisationId)
      Set the organisation ID.
      Parameters:
      organisationId - the organisation ID
      Returns:
      this builder
    • organisationName

      public SoftwareStatement.Builder organisationName(String organisationName)
      Set the organisation name.
      Parameters:
      organisationName - the organisation name
      Returns:
      this builder
    • softwareId

      public SoftwareStatement.Builder softwareId(String softwareId)
      Set the software ID.
      Parameters:
      softwareId - the software ID
      Returns:
      this builder
    • clientName

      public SoftwareStatement.Builder clientName(String clientName)
      Set the client name.
      Parameters:
      clientName - the client name
      Returns:
      this builder
    • softwareStatementAssertion

      public SoftwareStatement.Builder softwareStatementAssertion(SignedJwt softwareStatementAssertion)
      Set the software statement assertion.
      Parameters:
      softwareStatementAssertion - the software statement assertion
      Returns:
      this builder
    • roles

      public SoftwareStatement.Builder roles(List<String> roles)
      Set the roles.
      Parameters:
      roles - the roles
      Returns:
      this builder
    • jwksLocator

      public SoftwareStatement.Builder jwksLocator(Choice<URI,JWKSet> jwksLocator)
      Set the JWKSet locator. This represents where the JWKSet for this software can be found. This is either via URI or as a JWKSet embedded in the software statement.
      Parameters:
      jwksLocator - the JWKSet locator
      Returns:
      this builder
    • redirectUris

      public SoftwareStatement.Builder redirectUris(List<URI> redirectUris)
      Set the redirect URIs.
      Parameters:
      redirectUris - the redirect URIs
      Returns:
      this builder
    • build

      public SoftwareStatement build()
      Returns:
      the SoftwareStatement