SecurityManager.checkCredentialValue

Returns true if the user credential identified by credentialName exists with the value credentialValue, otherwise returns false. User credentials are established by the System Logon Service when the user logs on.

Further documentation.

returns boolean

Parameters

java.lang.String  credentialName,  java.lang.String  credentialValue,