import { AuthenticationModel } from './AuthenticationModel' ; import { RemoteKeyAuthorizationModel } from './RemoteKeyAuthorizationModel' ; /**
 * Model to express a Remote Key
 */ export class RemoteKeyModel { param kid param key param x5t param pfx param extractable param authorization param authentication constructor ( public kid ? , public key ? , public x5t ? , public pfx ? , public extractable = false , public authorization ? , public authentication ? ) { } param input param authentication populateFrom ( input , authentication ? ) { this . kid = input . kid ; this . key = input . key ; this . x5t = input . x5t ; this . pfx = input . pfx ; this . extractable = input . extractable ; if ( input . authorization ) { this . authorization = new RemoteKeyAuthorizationModel ( ) ; this . authorization . populateFrom ( input . authorization ) ; } this . authentication = input . authentication ? AuthenticationModel . fromJSON ( input . authentication ) : authentication ; } }