# Uses of Interface
org.eclipse.microprofile.openapi.models.info.License

Packages that use License
Package
Description
org.eclipse.microprofile.openapi
A set of Java interfaces, annotations and programming models which allow Java developers to natively produce OpenAPI v3.1 documents from their Jakarta REST applications.
org.eclipse.microprofile.openapi.models.info
A set of interfaces of programmable models to represent metadata about the API, including license information and contact information of the exposed API.

## Uses of License in org.eclipse.microprofile.openapi

Methods in org.eclipse.microprofile.openapi that return License
Modifier and Type
Method
Description
`static License`
OASFactory.`createLicense()`
This method creates a new `License` instance.

## Uses of License in org.eclipse.microprofile.openapi.models.info

Methods in org.eclipse.microprofile.openapi.models.info that return License
Modifier and Type
Method
Description
`License`
Info.`getLicense()`
Returns the license information for the exposed API from this Info instance.
`default License`
License.`identifier(String identifier)`
Sets this License instance's identifier used for the API and returns this instance of License.
`default License`
License.`name(String name)`
Sets this License instance's name used for the API and returns this instance of License.
`default License`
License.`url(String url)`
Sets this License instance's URL used for the API and returns this instance of License.
Methods in org.eclipse.microprofile.openapi.models.info with parameters of type License
Modifier and Type
Method
Description
`default Info`
Info.`license(License license)`
Sets this Info's license information for the exposed API and returns this instance of Info.
`void`
Info.`setLicense(License license)`
Sets this Info's license information for the exposed API.