SecurityManager.getCredential

Returns the credential value for the user credential identified by credentialName, or null if the credential does not exist or no user is logged on. User credentials are established by the System Logon Service when the user logs on.

Further documentation.

returns java.lang.String

Parameters

java.lang.String  credentialName,