Record Class Secret
java.lang.Object
java.lang.Record
org.frankframework.credentialprovider.delinea.Secret
public record Secret(int id, int folderId, String name, boolean active, List<Secret.Field> fields)
extends Record
Java representation of a Secret retrieved from Delinea Secret Server.
For example:
For example:
{
"id": 1,
"name": "Example account",
"secretTemplateId": 9,
"folderId": 13,
"active": true,
"items": []
...
"checkedOut": false,
"checkOutEnabled": false,
"siteId": 1,
...
"enableInheritSecretPolicy": true,
"secretPolicyId": -1,
"lastHeartBeatStatus": "Pending",
"lastHeartBeatCheck": null,
"failedPasswordChangeAttempts": 0,
"lastPasswordChangeAttempt": null,
"secretTemplateName": "Web Password",
"responseCodes": [],
"webLauncherRequiresIncognitoMode": false
}
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Java representation of an Item of a Secret. -
Constructor Summary
ConstructorsConstructorDescriptionSecret
(int id, int folderId, String name, boolean active, List<Secret.Field> fields) Creates an instance of aSecret
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
Returns the value of theactive
record component.final boolean
Indicates whether some other object is "equal to" this one.fields()
Returns the value of thefields
record component.int
folderId()
Returns the value of thefolderId
record component.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.name()
Returns the value of thename
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
Secret
Creates an instance of aSecret
record class.- Parameters:
id
- the value for theid
record componentfolderId
- the value for thefolderId
record componentname
- the value for thename
record componentactive
- the value for theactive
record componentfields
- the value for thefields
record component
-
-
Method Details
-
fields
Returns the value of thefields
record component.- Returns:
- the value of the
fields
record component
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
folderId
public int folderId()Returns the value of thefolderId
record component.- Returns:
- the value of the
folderId
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
active
public boolean active()Returns the value of theactive
record component.- Returns:
- the value of the
active
record component
-