Package com.android.identity
Class ConnectionMethodHttp
- java.lang.Object
-
- com.android.identity.ConnectionMethod
-
- com.android.identity.ConnectionMethodHttp
-
public class ConnectionMethodHttp extends ConnectionMethod
Connection method for HTTP connections.
-
-
Constructor Summary
Constructors Constructor Description ConnectionMethodHttp(java.lang.String uri)
Creates a new connection method for HTTP.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTransport
createDataTransport(android.content.Context context, int role, DataTransportOptions options)
Creates a newDataTransport
-derived instance for the given type ofConnectionMethod
.java.lang.String
getUri()
Gets the URI.java.lang.String
toString()
-
Methods inherited from class com.android.identity.ConnectionMethod
combine, disambiguate
-
-
-
-
Method Detail
-
getUri
@NonNull public java.lang.String getUri()
Gets the URI.- Returns:
- the URI.
-
createDataTransport
@NonNull public DataTransport createDataTransport(@NonNull android.content.Context context, int role, @NonNull DataTransportOptions options)
Description copied from class:ConnectionMethod
Creates a newDataTransport
-derived instance for the given type ofConnectionMethod
.- Specified by:
createDataTransport
in classConnectionMethod
- Parameters:
context
- application context.role
- whether the transport will be used by the mdoc or mdoc reader.options
- options for configuring the created instance.- Returns:
- A
DataTransport
-derived instance configured with the given options.
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-