Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-04


oracle.security.jps.service.credstore
Interface GenericCredential

All Superinterfaces:
Credential, java.io.Serializable

public interface GenericCredential
extends Credential

A GenericCredential instance encapsulates a java.lang.object object as a serializable object.


Method Summary
 java.lang.Object getCredential()
          Returns the generic credential object which can be of any type
 java.util.Calendar getExpiryTime()
          Returns the expiration time if credential is created with expiration time.
 void setExpiryTime(java.util.Calendar expiryTime)
          Sets the expiration time for this credential.

 

Methods inherited from interface oracle.security.jps.service.credstore.Credential
getDescription, setDescription

 

Method Detail

getCredential

java.lang.Object getCredential()
Returns the generic credential object which can be of any type
Returns:
Object
Since:
CSF 0.1

getExpiryTime

java.util.Calendar getExpiryTime()
Returns the expiration time if credential is created with expiration time. If credential is created without expiration time, this method returns null.
Returns:
Expiration time of this credential if created with expiration time.
Since:
CSF 0.1

setExpiryTime

void setExpiryTime(java.util.Calendar expiryTime)
Sets the expiration time for this credential.
Parameters:
expiryTime - Expiry time of this credential. Must be non-null and after current time.
Throws:
CredStoreRuntimeException - if invalid value is provided
Since:
CSF 0.1

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-04


Copyright © 2011, Oracle. All rights reserved.