Class SessionTokenAuthenticationDetailsProvider
  
  
  
    Inheritance
    
    SessionTokenAuthenticationDetailsProvider
   
  
  
  
  Assembly: OCI.DotNetSDK.Common.dll
  Syntax
  
    public class SessionTokenAuthenticationDetailsProvider : IAuthenticationDetailsProvider, IBasicAuthenticationDetailsProvider, IAbstractAuthenticationDetailsProvider, IRegionProvider, IRefreshableOnNotAuthenticatedProvider<string>
   
  Constructors
  
  SessionTokenAuthenticationDetailsProvider(SimpleAuthenticationDetailsProvider, string)
  
  
  Declaration
  
    public SessionTokenAuthenticationDetailsProvider(SimpleAuthenticationDetailsProvider provider, string sessionToken)
   
  Parameters
  
  
  SessionTokenAuthenticationDetailsProvider(ConfigFile, FilePrivateKeySupplier)
  Constructor. Reads from a ConfigFile object.
If a FilePrivateKeySupplier is provided, it will be used to obtain private key. Otherwise,
a FilePrivateKeySupplier object will be created based on information from configFile.
If additional security checks on the private key file are needed, provide a FileSecurePrivateKeySupplier object.
Declaration
  
    public SessionTokenAuthenticationDetailsProvider(ConfigFile configFile, FilePrivateKeySupplier keySupplier = null)
   
  Parameters
  
  
  SessionTokenAuthenticationDetailsProvider(string, FilePrivateKeySupplier)
  Constructor. Reads from the config file at default location.
Declaration
  
    public SessionTokenAuthenticationDetailsProvider(string profile, FilePrivateKeySupplier keySupplier = null)
   
  Parameters
  
  
  SessionTokenAuthenticationDetailsProvider(string, string, FilePrivateKeySupplier)
  Constructor. Reads from the config file at given location.
Declaration
  
    public SessionTokenAuthenticationDetailsProvider(string configurationFilePath, string profile, FilePrivateKeySupplier keySupplier = null)
   
  Parameters
  
  Fields
  logger
  
  
  Declaration
  
    protected static Logger logger
   
  Field Value
  
  Properties
  
  Fingerprint
  
  
  Declaration
  
    public string Fingerprint { get; }
   
  Property Value
  
  
  KeyId
  
  
  Declaration
  
    public string KeyId { get; }
   
  Property Value
  
  
  PassPhraseCharacters
  
  
  Declaration
  
    public char[] PassPhraseCharacters { get; }
   
  Property Value
  
  
  Region
  
  
  Declaration
  
    public Region Region { get; }
   
  Property Value
  
  
  TenantId
  
  
  Declaration
  
    public string TenantId { get; }
   
  Property Value
  
  
  UserId
  
  
  Declaration
  
    public string UserId { get; }
   
  Property Value
  
  Methods
  
  GetPrivateKey()
  
  
  Declaration
  
    public RsaKeyParameters GetPrivateKey()
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | RsaKeyParameters |  | 
    
  
  
  GetSessionTokenExpiryDate()
  
  
  Declaration
  
    public DateTime GetSessionTokenExpiryDate()
   
  Returns
  
  
  IsSessionTokenValid()
  
  
  Declaration
  
    public bool IsSessionTokenValid()
   
  Returns
  
  
  Refresh()
  Refreshes the authentication data used by the provider.
Declaration
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | string | The refreshed authentication data. | 
    
  
  Implements