Package org.forgerock.opendj.security
Record Class KeyManagers.SecurityProvider
java.lang.Object
java.lang.Record
org.forgerock.opendj.security.KeyManagers.SecurityProvider
- Record Components:
name- The provider name (may benull)className- The provider class name (may benull)arg- the name of the provider argument (often a path to a config file) (may benull)
- Enclosing class:
- KeyManagers
public static record KeyManagers.SecurityProvider(String name, String className, String arg)
extends Record
Allows to return a security provider that can be used to load a keystore or a truststore.
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityProvider(String name, String className, String arg) Canonical constructor. -
Method Summary
Modifier and TypeMethodDescriptionarg()Returns the value of theargrecord component.Returns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns a configured Provider instance using either its name or its class name.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SecurityProvider
Canonical constructor.- Parameters:
name- the provider name (may benull)className- the provider class name (may benull)arg- the name of the provider argument (often a path to a config file) (may benull)
-
-
Method Details
-
resolveJavaSecurityProvider
Returns a configured Provider instance using either its name or its class name.- Returns:
- a configured Provider instance using either its name or its class name
- Throws:
LocalizedSecurityException
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
arg
Returns the value of theargrecord component.- Returns:
- the value of the
argrecord component
-