public class Credentials
extends java.lang.Object
Credential
class for information about credential types).Credential
Constructor and Description |
---|
Credentials()
Creates a new list of credentials.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Credential cred)
Adds the specified credential.
|
boolean |
check(Credential cred)
Checks for existence and matching of this credential.
|
boolean |
equals(Credentials creds)
Matches against another set of credentials.
|
Credential |
get(int aType)
Gets the credential of the supplied type in this set.
|
java.lang.String |
toString() |
public void add(Credential cred)
cred
- The credential to add.public boolean check(Credential cred)
cred
- The cred to check againstpublic Credential get(int aType)
aType
- The type code of the credential to fetch.public boolean equals(Credentials creds)
creds
- The creds to match against.public java.lang.String toString()
toString
in class java.lang.Object