package Ġnet . cord a . testing . internal . stubs Ċ Ċ import Ġnet . cord a . core . internal . div Ċ import Ġnet . cord a . node api . internal . config . File Based Certificate Store Supplier Ċ import Ġnet . cord a . node api . internal . config . Ssl Configuration Ċ import Ġnet . cord a . node api . internal . config . Mut ual Ssl Configuration Ċ import Ġjava . nio . file . Path Ċ Ċ class ĠCertificate Store Stub s Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠ Ġconst Ġval ĠDEFAULT _ CER TIF IC ATES _ DIRECTORY _ NAME Ġ= Ġ" certificates " ĊĊĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠ Ġfun Ġwith Store At ( certificate Store Path : ĠPath , Ġpassword : ĠString ): ĠFile Based Certificate Store Supplier Ġ= ĠFile Based Certificate Store Supplier ( certificate Store Path , Ġpassword ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġclass ĠSign ing Ġ{ ĊĊĠĠĠĠĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġconst Ġval ĠDEFAULT _ STORE _ FILE _ NAME Ġ= Ġ" node keystore . j ks " ĊĠĠĠĠĠĠĠĠĠĠĠ Ġconst Ġval ĠDEFAULT _ STORE _ PASSWORD Ġ= Ġ" cord acade v pass " ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfun Ġwith Certificates Directory ( certificates Directory : ĠPath , Ġpassword : ĠString Ġ= ĠDEFAULT _ STORE _ PASSWORD , Ġcertificate Store FileName : ĠString Ġ= ĠDEFAULT _ STORE _ FILE _ NAME ): ĠFile Based Certificate Store Supplier Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠFile Based Certificate Store Supplier ( certificates Directory Ġ/ Ġcertificate Store FileName , Ġpassword ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfun Ġwith Base Directory ( base Directory : ĠPath , Ġpassword : ĠString Ġ= ĠDEFAULT _ STORE _ PASSWORD , Ġcertificates DirectoryName : ĠString Ġ= ĠDEFAULT _ CER TIF IC ATES _ DIRECTORY _ NAME , Ġcertificate Store FileName : ĠString Ġ= ĠDEFAULT _ STORE _ FILE _ NAME ): ĠFile Based Certificate Store Supplier Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠFile Based Certificate Store Supplier ( base Directory Ġ/ Ġcertificates DirectoryName Ġ/ Ġcertificate Store FileName , Ġpassword ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġclass ĠP 2 P Ġ{ ĊĊĠĠĠĠĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfun Ġwith Certificates Directory ( certificates Directory : ĠPath , Ġkey Store FileName : ĠString Ġ= ĠKey Store . DEFAULT _ STORE _ FILE _ NAME , Ġkey Store Password : ĠString Ġ= ĠKey Store . DEFAULT _ STORE _ PASSWORD , Ġtrust Store FileName : ĠString Ġ= ĠTrust Store . DEFAULT _ STORE _ FILE _ NAME , Ġtrust Store Password : ĠString Ġ= ĠTrust Store . DEFAULT _ STORE _ PASSWORD ): ĠMut ual Ssl Configuration Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġkey Store Ġ= ĠFile Based Certificate Store Supplier ( certificates Directory Ġ/ Ġkey Store FileName , Ġkey Store Password ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġtrust Store Ġ= ĠFile Based Certificate Store Supplier ( certificates Directory Ġ/ Ġtrust Store FileName , Ġtrust Store Password ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠS sl Configuration . mut ual ( key Store , Ġtrust Store ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfun Ġwith Base Directory ( base Directory : ĠPath , Ġcertificates DirectoryName : ĠString Ġ= ĠDEFAULT _ CER TIF IC ATES _ DIRECTORY _ NAME , Ġkey Store FileName : ĠString Ġ= ĠKey Store . DEFAULT _ STORE _ FILE _ NAME , Ġkey Store Password : ĠString Ġ= ĠKey Store . DEFAULT _ STORE _ PASSWORD , Ġtrust Store FileName : ĠString Ġ= ĠTrust Store . DEFAULT _ STORE _ FILE _ NAME , Ġtrust Store Password : ĠString Ġ= ĠTrust Store . DEFAULT _ STORE _ PASSWORD ): ĠMut ual Ssl Configuration Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġwith Certificates Directory ( base Directory Ġ/ Ġcertificates DirectoryName , Ġkey Store FileName , Ġkey Store Password , Ġtrust Store FileName , Ġtrust Store Password ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġclass ĠKey Store Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġconst Ġval ĠDEFAULT _ STORE _ FILE _ NAME Ġ= Ġ" ssl keystore . j ks " ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġconst Ġval ĠDEFAULT _ STORE _ PASSWORD Ġ= Ġ" cord acade v pass " ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfun Ġwith Certificates Directory ( certificates Directory : ĠPath , Ġpassword : ĠString Ġ= ĠDEFAULT _ STORE _ PASSWORD , Ġcertificate Store FileName : ĠString Ġ= ĠDEFAULT _ STORE _ FILE _ NAME ): ĠFile Based Certificate Store Supplier Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠFile Based Certificate Store Supplier ( certificates Directory Ġ/ Ġcertificate Store FileName , Ġpassword ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfun Ġwith Base Directory ( base Directory : ĠPath , Ġpassword : ĠString Ġ= ĠDEFAULT _ STORE _ PASSWORD , Ġcertificates DirectoryName : ĠString Ġ= ĠDEFAULT _ CER TIF IC ATES _ DIRECTORY _ NAME , Ġcertificate Store FileName : ĠString Ġ= ĠDEFAULT _ STORE _ FILE _ NAME ): ĠFile Based Certificate Store Supplier Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠFile Based Certificate Store Supplier ( base Directory Ġ/ Ġcertificates DirectoryName Ġ/ Ġcertificate Store FileName , Ġpassword ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġclass ĠTrust Store Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġconst Ġval ĠDEFAULT _ STORE _ FILE _ NAME Ġ= Ġ" trust store . j ks " ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġconst Ġval ĠDEFAULT _ STORE _ PASSWORD Ġ= Ġ" trust pass " ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfun Ġwith Certificates Directory ( certificates Directory : ĠPath , Ġpassword : ĠString Ġ= ĠDEFAULT _ STORE _ PASSWORD , Ġcertificate Store FileName : ĠString Ġ= ĠDEFAULT _ STORE _ FILE _ NAME ): ĠFile Based Certificate Store Supplier Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠFile Based Certificate Store Supplier ( certificates Directory Ġ/ Ġcertificate Store FileName , Ġpassword ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfun Ġwith Base Directory ( base Directory : ĠPath , Ġpassword : ĠString Ġ= ĠDEFAULT _ STORE _ PASSWORD , Ġcertificates DirectoryName : ĠString Ġ= ĠDEFAULT _ CER TIF IC ATES _ DIRECTORY _ NAME , Ġcertificate Store FileName : ĠString Ġ= ĠDEFAULT _ STORE _ FILE _ NAME ): ĠFile Based Certificate Store Supplier Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠFile Based Certificate Store Supplier ( base Directory Ġ/ Ġcertificates DirectoryName Ġ/ Ġcertificate Store FileName , Ġpassword ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }