Class SecuritySchemeImpl
java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
org.gcube.informationsystem.model.impl.properties.PropertyImpl
org.gcube.resourcemanagement.model.impl.properties.GCubePropertyImpl
org.gcube.resourcemanagement.model.impl.properties.SecuritySchemeImpl
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.properties.PropertyElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.ModelElement,org.gcube.informationsystem.model.reference.properties.Property,GCubeProperty,SecurityScheme
- Direct Known Subclasses:
HTTPSecuritySchemeImpl
Implementation of
SecurityScheme.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe human-readable description of the security schemeprotected StringThe specification defining the schemeprotected StringThe name of the authentication mechanismprotected URIWhere the credentials are obtained or verifiedFields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
additionalProperties, allowedAdditionalKeys, expectedType, supertypesFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USERFields inherited from interface org.gcube.resourcemanagement.model.reference.properties.GCubeProperty
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.properties.Property
NAMEFields inherited from interface org.gcube.resourcemanagement.model.reference.properties.SecurityScheme
DESCRIPTION_PROPERTY, NAME, REFERENCE_PROPERTY, SCHEME_PROPERTY, URL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA human-readable description of the security scheme, e.g.The specification defining the scheme, as cited by the registry of the extension, written as a Markdown link, e.g.The name of the authentication mechanism, taken from the registry of the framework the extension defines, e.g.getURL()Where the credentials are obtained or verified, e.g. the discovery document of the OpenID Connect provider issuing the tokens (OpenID Connect Discovery 1.0), such ashttps://accounts.d4science.org/auth/realms/d4science/.well-known/openid-configurationfor the D4Science IAM, or the portal issuing API keys.voidsetDescription(String description) Sets the human-readable description of the security schemevoidsetReference(String reference) Sets the specification defining the schemevoidSets the name of the authentication mechanismvoidSets where the credentials are obtained or verifiedMethods inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, getExpectedType, getSupertypes, setAdditionalProperties, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedType, getSupertypesMethods inherited from interface org.gcube.informationsystem.model.reference.properties.Property
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
Field Details
-
scheme
The name of the authentication mechanism -
reference
The specification defining the scheme -
url
Where the credentials are obtained or verified -
description
The human-readable description of the security scheme
-
-
Constructor Details
-
SecuritySchemeImpl
public SecuritySchemeImpl()Default constructor
-
-
Method Details
-
getScheme
The name of the authentication mechanism, taken from the registry of the framework the extension defines, e.g.Bearerfor anHTTPSecurityScheme(IANA HTTP Authentication Scheme Registry).- Specified by:
getSchemein interfaceSecurityScheme- Returns:
- the name of the authentication mechanism
-
setScheme
Sets the name of the authentication mechanism- Specified by:
setSchemein interfaceSecurityScheme- Parameters:
scheme- the name of the authentication mechanism, e.g.Bearer
-
getReference
The specification defining the scheme, as cited by the registry of the extension, written as a Markdown link, e.g.[RFC 6750](https://www.rfc-editor.org/rfc/rfc6750)or[RFC 9449, Section 7.1](https://www.rfc-editor.org/rfc/rfc9449#section-7.1); plain text when there is no link.- Specified by:
getReferencein interfaceSecurityScheme- Returns:
- the specification defining the scheme
-
setReference
Sets the specification defining the scheme- Specified by:
setReferencein interfaceSecurityScheme- Parameters:
reference- the specification defining the scheme, as a Markdown link
-
getURL
Where the credentials are obtained or verified, e.g. the discovery document of the OpenID Connect provider issuing the tokens (OpenID Connect Discovery 1.0), such ashttps://accounts.d4science.org/auth/realms/d4science/.well-known/openid-configurationfor the D4Science IAM, or the portal issuing API keys.- Specified by:
getURLin interfaceSecurityScheme- Returns:
- where the credentials are obtained or verified
-
setURL
Sets where the credentials are obtained or verified- Specified by:
setURLin interfaceSecurityScheme- Parameters:
url- where the credentials are obtained or verified, e.g. the OpenID Connect discovery document of the issuer
-
getDescription
A human-readable description of the security scheme, e.g.Tokens issued by the D4Science IAM for the Context of the call.- Specified by:
getDescriptionin interfaceSecurityScheme- Returns:
- the description
-
setDescription
Sets the human-readable description of the security scheme- Specified by:
setDescriptionin interfaceSecurityScheme- Parameters:
description- the description
-