Skip to content

Commit

Permalink
chore: do not expose get federation trust function to outside of plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Brummos committed Nov 1, 2024
1 parent e07a610 commit 39e7dbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions packages/oid4vci-holder/src/agent/OID4VCIHolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ export class OID4VCIHolder implements IAgentPlugin {
oid4vciHolderStoreCredentialBranding: this.oid4vciHolderStoreCredentialBranding.bind(this),
oid4vciHolderStoreCredentials: this.oid4vciHolderStoreCredentials.bind(this),
oid4vciHolderSendNotification: this.oid4vciHolderSendNotification.bind(this),
oid4vciGetFederationTrust: this.oid4vciGetFederationTrust.bind(this),
}

private readonly vcFormatPreferences: Array<string> = ['vc+sd-jwt', 'mso_mdoc', 'jwt_vc_json', 'jwt_vc', 'ldp_vc']
Expand Down Expand Up @@ -321,7 +320,7 @@ export class OID4VCIHolder implements IAgentPlugin {
storeCredentialBranding: (args: StoreCredentialBrandingArgs) => this.oid4vciHolderStoreCredentialBranding(args, context),
storeCredentials: (args: StoreCredentialsArgs) => this.oid4vciHolderStoreCredentials(args, context),
sendNotification: (args: SendNotificationArgs) => this.oid4vciHolderSendNotification(args, context),
getFederationTrust: (args: GetFederationTrustArgs) => this.oid4vciGetFederationTrust(args, context)
getFederationTrust: (args: GetFederationTrustArgs) => this.getFederationTrust(args, context)
}

const oid4vciMachineInstanceArgs: OID4VCIMachineInstanceOpts = {
Expand Down Expand Up @@ -1008,7 +1007,7 @@ export class OID4VCIHolder implements IAgentPlugin {
logger.log(`Notification to ${notificationEndpoint} has been dispatched`)
}

private async oid4vciGetFederationTrust(args: GetFederationTrustArgs, context: RequiredContext): Promise<boolean> {
private async getFederationTrust(args: GetFederationTrustArgs, context: RequiredContext): Promise<boolean> {
const { requestData, serverMetadata, trustAnchors } = args

if (trustAnchors.length === 0) {
Expand Down
2 changes: 0 additions & 2 deletions packages/oid4vci-holder/src/types/IOID4VCIHolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ export interface IOID4VCIHolder extends IPluginMethodMap {
oid4vciHolderStoreCredentialBranding(args: StoreCredentialBrandingArgs, context: RequiredContext): Promise<void>

oid4vciHolderStoreCredentials(args: StoreCredentialsArgs, context: RequiredContext): Promise<void>

oid4vciGetFederationTrust(args: GetFederationTrustArgs, context: RequiredContext): Promise<boolean>
}

export type OID4VCIHolderOptions = {
Expand Down

0 comments on commit 39e7dbe

Please sign in to comment.