com.novell.zos.toolkit
Class CredentialFactory
java.lang.Object
com.novell.zos.toolkit.CredentialFactory
public class CredentialFactory
- extends Object
Factory pattern used to create a Credential
used for connection to the server.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newPasswordCredential
public static Credential newPasswordCredential(String user,
char[] passwd)
throws GridException
- Create a
Credential
to use for authentication to the
server.
- Parameters:
user
- User name for constructing Credentialpasswd
- User password for constructing Credential
- Returns:
Credential
to use in server communication
- Throws:
GridException
- if passed values are invalid
Copyright (c) 2009 Novell, Inc. All rights reserved.