Interface TlsFileDatabase

All Superinterfaces:
Proxy
All Known Implementing Classes:
TlsFileDatabase.TlsFileDatabase$Impl

@Generated("org.javagi.JavaGI") public interface TlsFileDatabase extends Proxy
GTlsFileDatabase is implemented by TlsDatabase objects which load their certificate information from a file. It is an interface which TLS library specific subtypes implement.
Since:
2.30
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
    static class 
    The TlsFileDatabase$Impl type represents a native instance of the TlsFileDatabase interface.
    static class 
    Provides an interface for GTlsFileDatabase implementations.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static @Nullable Type
    Get the GType of the TlsFileDatabase class.
    new_(String anchors)
    Creates a new GTlsFileDatabase which uses anchor certificate authorities in anchors to verify certificate chains.
    new_(Filename anchors)
    Creates a new GTlsFileDatabase which uses anchor certificate authorities in anchors to verify certificate chains.

    Methods inherited from interface Proxy

    handle
  • Method Details

    • getType

      static @Nullable Type getType()
      Get the GType of the TlsFileDatabase class.
      Returns:
      the GType
    • new_

      static TlsFileDatabase new_(Filename anchors) throws GErrorException

      Creates a new GTlsFileDatabase which uses anchor certificate authorities in anchors to verify certificate chains.

      The certificates in anchors must be PEM encoded.

      Parameters:
      anchors - filename of anchor certificate authorities.
      Returns:
      the new GTlsFileDatabase, or null on error
      Throws:
      GErrorException - see GError
      Since:
      2.30
    • new_

      static TlsFileDatabase new_(String anchors) throws GErrorException

      Creates a new GTlsFileDatabase which uses anchor certificate authorities in anchors to verify certificate chains.

      The certificates in anchors must be PEM encoded.

      Parameters:
      anchors - filename of anchor certificate authorities.
      Returns:
      the new GTlsFileDatabase, or null on error
      Throws:
      GErrorException - see GError
      Since:
      2.30