Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


oracle.security.jps.service.credstore
Class CredentialFactory

java.lang.Object
  extended by oracle.security.jps.service.credstore.CredentialFactory


public final class CredentialFactory
extends java.lang.Object

This class is a factory for getting new credential instances.


Constructor Summary
CredentialFactory()
           

 

Method Summary
static CredentialMap newCredentialMap()
          Creates the new Credential Map instance which can be used for setting the keys and values
static DataSourceCredential newDataSourceCredential(java.lang.String url, int port, java.lang.String name, char[] password)
          Creates a new DataSourceCredential credential
static DataSourceCredential newDataSourceCredential(java.lang.String url, int port, java.lang.String name, char[] password, java.util.Calendar expiryTime)
          Creates the new time bound DataSourceCredential credential
static DataSourceCredential newDataSourceCredential(java.lang.String url, int port, java.lang.String name, char[] password, java.lang.String description)
          Creates a new DataSourceCredential credential
static DataSourceCredential newDataSourceCredential(java.lang.String url, int port, java.lang.String name, char[] password, java.lang.String description, java.util.Calendar expiryTime)
          Creates the new time bound DataSourceCredential credential
static GenericCredential newGenericCredential(java.lang.Object credential)
          Creates the new GenericCredential credential
static GenericCredential newGenericCredential(java.lang.Object credential, java.util.Calendar expiryTime)
          Creates the time bound GenericCredential credential
static GenericCredential newGenericCredential(java.lang.Object credential, java.lang.String description)
          Creates the new GenericCredential credential
static GenericCredential newGenericCredential(java.lang.Object credential, java.lang.String description, java.util.Calendar expiryTime)
          Creates the time bound GenericCredential credential
static PasswordCredential newPasswordCredential(java.lang.String name, char[] password)
          Creates the new PasswordCredential credential
static PasswordCredential newPasswordCredential(java.lang.String name, char[] password, java.util.Calendar expiryTime)
          Creates the time bound PasswordCredential credential
static PasswordCredential newPasswordCredential(java.lang.String name, char[] password, java.lang.String description)
          Creates the new PasswordCredential credential
static PasswordCredential newPasswordCredential(java.lang.String name, char[] password, java.lang.String description, java.util.Calendar expiryTime)
          Creates the time bound PasswordCredential credential

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

CredentialFactory

public CredentialFactory()

Method Detail

newCredentialMap

public static CredentialMap newCredentialMap()
                                      throws CredStoreException
Creates the new Credential Map instance which can be used for setting the keys and values
Returns:
The new CredentialMap instance
Throws:
CredStoreException - if there is any store error

newPasswordCredential

public static PasswordCredential newPasswordCredential(java.lang.String name,
                                                       char[] password)
                                                throws CredentialInvalidException,
                                                       CredStoreException
Creates the new PasswordCredential credential
Parameters:
name - The name of the PasswordCredential. Must be non-null and size must be greater than zero
password - The password of the PasswordCredential. Must be non-null and size must be greater than zero
Returns:
PasswordCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newPasswordCredential

public static PasswordCredential newPasswordCredential(java.lang.String name,
                                                       char[] password,
                                                       java.lang.String description)
                                                throws CredentialInvalidException,
                                                       CredStoreException
Creates the new PasswordCredential credential
Parameters:
name - The name of the PasswordCredential. Must be non-null and size must be greater than zero
password - The password of the PasswordCredential. Must be non-null and size must be greater than zero
description - The optional description field.
Returns:
PasswordCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newPasswordCredential

public static PasswordCredential newPasswordCredential(java.lang.String name,
                                                       char[] password,
                                                       java.util.Calendar expiryTime)
                                                throws CredentialInvalidException,
                                                       CredStoreException
Creates the time bound PasswordCredential credential
Parameters:
name - The name of the PasswordCredential. Must be non-null and size must be greater than zero
password - The password of the PasswordCredential. Must be non-null and size must be greater than zero
expiryTime - The time to live this credential
Returns:
PasswordCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newPasswordCredential

public static PasswordCredential newPasswordCredential(java.lang.String name,
                                                       char[] password,
                                                       java.lang.String description,
                                                       java.util.Calendar expiryTime)
                                                throws CredentialInvalidException,
                                                       CredStoreException
Creates the time bound PasswordCredential credential
Parameters:
name - The name of the PasswordCredential. Must be non-null and size must be greater than zero
password - The password of the PasswordCredential. Must be non-null and size must be greater than zero
description - The optional description field
expiryTime - The time to live this credential
Returns:
PasswordCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newDataSourceCredential

public static DataSourceCredential newDataSourceCredential(java.lang.String url,
                                                           int port,
                                                           java.lang.String name,
                                                           char[] password)
                                                    throws CredentialInvalidException,
                                                           CredStoreException
Creates a new DataSourceCredential credential
Parameters:
url - The datasource URL. Must be non-null and size must be greater than zero
port - The port. Must be non-null and size must be positive value
name - The user name of the datasource. Must be non-null and size must be greater than zero
password - The password for datasource. Must be non-null and size must be greater than zero
Returns:
A new DataSourceCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newDataSourceCredential

public static DataSourceCredential newDataSourceCredential(java.lang.String url,
                                                           int port,
                                                           java.lang.String name,
                                                           char[] password,
                                                           java.lang.String description)
                                                    throws CredentialInvalidException,
                                                           CredStoreException
Creates a new DataSourceCredential credential
Parameters:
url - The datasource URL. Must be non-null and size must be greater than zero
port - The port. Must be non-null and size must be positive value
name - The user name of the datasource. Must be non-null and size must be greater than zero
password - The password for datasource. Must be non-null and size must be greater than zero
description - The optional description field
Returns:
A new DataSourceCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newDataSourceCredential

public static DataSourceCredential newDataSourceCredential(java.lang.String url,
                                                           int port,
                                                           java.lang.String name,
                                                           char[] password,
                                                           java.util.Calendar expiryTime)
                                                    throws CredentialInvalidException,
                                                           CredStoreException
Creates the new time bound DataSourceCredential credential
Parameters:
url - The datasource URL. Must be non-null and size must be greater than zero
port - The port. Must be non-null and size must be positive value
name - The user name of the datasource. Must be non-null and size must be greater than zero
password - The password for datasource. Must be non-null and size must be greater than zero
expiryTime - The time to live for this credential
Returns:
A new DataSourceCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newDataSourceCredential

public static DataSourceCredential newDataSourceCredential(java.lang.String url,
                                                           int port,
                                                           java.lang.String name,
                                                           char[] password,
                                                           java.lang.String description,
                                                           java.util.Calendar expiryTime)
                                                    throws CredentialInvalidException,
                                                           CredStoreException
Creates the new time bound DataSourceCredential credential
Parameters:
url - The datasource URL. Must be non-null and size must be greater than zero
port - The port. Must be non-null and size must be positive value
name - The user name of the datasource. Must be non-null and size must be greater than zero
password - The password for datasource. Must be non-null and size must be greater than zero
description - The optional description field
expiryTime - The time to live for this credential
Returns:
A new DataSourceCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newGenericCredential

public static GenericCredential newGenericCredential(java.lang.Object credential)
                                              throws CredentialInvalidException,
                                                     CredStoreException
Creates the new GenericCredential credential
Parameters:
credential - Any serializable object. Must be non-null.
Returns:
GenericCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newGenericCredential

public static GenericCredential newGenericCredential(java.lang.Object credential,
                                                     java.lang.String description)
                                              throws CredentialInvalidException,
                                                     CredStoreException
Creates the new GenericCredential credential
Parameters:
credential - Any serializable object. Must be non-null.
description - The optional description field
Returns:
GenericCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newGenericCredential

public static GenericCredential newGenericCredential(java.lang.Object credential,
                                                     java.util.Calendar expiryTime)
                                              throws CredentialInvalidException,
                                                     CredStoreException
Creates the time bound GenericCredential credential
Parameters:
credential - Any serializable object. Must be non-null.
expiryTime - The time to live for this credential
Returns:
GenericCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

newGenericCredential

public static GenericCredential newGenericCredential(java.lang.Object credential,
                                                     java.lang.String description,
                                                     java.util.Calendar expiryTime)
                                              throws CredentialInvalidException,
                                                     CredStoreException
Creates the time bound GenericCredential credential
Parameters:
credential - Any serializable object. Must be non-null.
description - The optional description field
expiryTime - The time to live for this credential
Returns:
GenericCredential object
Throws:
CredentialInvalidException - if invalid values are provided
CredStoreException - if there is any other store error

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


Copyright © 2011,2012, Oracle and/or its affiliates. All rights reserved.