Record Class AuthorizationSection.Configuration
java.lang.Object
java.lang.Record
org.gcube.common.security.provider.AuthorizationSection.Configuration
- Record Components:
factory- the factory of the providercredentials- the credentials the factory connects with
- Enclosing class:
- AuthorizationSection
public static record AuthorizationSection.Configuration(org.gcube.common.security.factories.AuthorizationProviderFactory<?> factory, org.gcube.common.security.credentials.Credentials credentials)
extends Record
The factory and the credentials a section gives.
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(org.gcube.common.security.factories.AuthorizationProviderFactory<?> factory, org.gcube.common.security.credentials.Credentials credentials) Creates an instance of aConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.gcube.common.security.factories.AuthorizationProviderconnect()org.gcube.common.security.credentials.CredentialsReturns the value of thecredentialsrecord component.final booleanIndicates whether some other object is "equal to" this one.org.gcube.common.security.factories.AuthorizationProviderFactory<?>factory()Returns the value of thefactoryrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Configuration
public Configuration(org.gcube.common.security.factories.AuthorizationProviderFactory<?> factory, org.gcube.common.security.credentials.Credentials credentials) Creates an instance of aConfigurationrecord class.- Parameters:
factory- the value for thefactoryrecord componentcredentials- the value for thecredentialsrecord component
-
-
Method Details
-
connect
public org.gcube.common.security.factories.AuthorizationProvider connect()- Returns:
- the provider of authorization of these credentials
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
factory
public org.gcube.common.security.factories.AuthorizationProviderFactory<?> factory()Returns the value of thefactoryrecord component.- Returns:
- the value of the
factoryrecord component
-
credentials
public org.gcube.common.security.credentials.Credentials credentials()Returns the value of thecredentialsrecord component.- Returns:
- the value of the
credentialsrecord component
-