Get trust anchor
Returns details on a trust anchor.
Related guide: Trust management
Function
- React Native
- iOS
- Android
getTrustAnchor(trustAnchorId: TrustAnchor["id"]): Promise<TrustAnchor>;
func getTrustAnchor(trustAnchorId: String) throws -> GetTrustAnchorResponseBindingDto
fun `getTrustAnchor`(`trustAnchorId`: kotlin.String): GetTrustAnchorResponseBindingDto
Parameters
anchorId
- Specify the trust anchor.
Return value
- React Native
- iOS
- Android
export interface TrustAnchor {
id: string;
createdDate: string;
lastModified: string;
name: string;
type: string;
isPublisher: boolean;
publisherReference: string;
}
public struct GetTrustAnchorResponseBindingDto {
public var id: String
public var name: String
public var createdDate: String
public var lastModified: String
public var type: String
public var isPublisher: Bool
public var publisherReference: String
}
data class GetTrustAnchorResponseBindingDto (
var `id`: kotlin.String,
var `name`: kotlin.String,
var `createdDate`: kotlin.String,
var `lastModified`: kotlin.String,
var `type`: kotlin.String,
var `isPublisher`: kotlin.Boolean,
var `publisherReference`: kotlin.String
)
-
type - Possible values from the configuration.
-
isPublisher - (Boolean) Whether the system is the publisher of the trust anchor or a subscriber.
-
publisherReference - publication url of the trust anchor.