Class SecretInfo
- java.lang.Object
-
- com.pingidentity.sdk.secretmanager.SecretInfo
-
public class SecretInfo extends Object
The information about the secret returned fromSecretManager.getSecretInfo(String, java.util.Map).- Since:
- 11.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSERNAME_ATTRIBUTE_NAMEThe attribute key for the active username for the secret, if one is defined.
-
Constructor Summary
Constructors Constructor Description SecretInfo(String secret, AttributeMap attributes)The constructor for the SecretInfo class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeMapgetAttributes()Gets the attributes retrieved from the given Secret Manager.StringgetSecret()Gets the secret retrieved from the given Secret Manager.
-
-
-
Field Detail
-
USERNAME_ATTRIBUTE_NAME
public static final String USERNAME_ATTRIBUTE_NAME
The attribute key for the active username for the secret, if one is defined.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecretInfo
public SecretInfo(String secret, AttributeMap attributes)
The constructor for the SecretInfo class.- Parameters:
secret- the secretattributes- the attributes (optional)
-
-
Method Detail
-
getSecret
public String getSecret()
Gets the secret retrieved from the given Secret Manager.- Returns:
- the secret
-
getAttributes
public AttributeMap getAttributes()
Gets the attributes retrieved from the given Secret Manager.- Returns:
- the attributes
-
-