Skip navigation links
no.bbs.server.vos

Class ContextInfo

    • Constructor Detail

      • ContextInfo

        public ContextInfo()
    • Method Detail

      • getBankidEnvironment

        public String getBankidEnvironment()
        Returns the BankID environment for this merchant context. BankIDServer scans the merchant bid-file (keystore) and retrieves the merchants signer certificates. By evaluating the signer certificates BankIDServer knows which environment this Context is supposed to run in. The value returned is one of teh following: DEV,TEST,PREPROD,PROD
        Returns:
        String The BankID environment the merchant bid-file is created for
      • getMerchantName

        public String getMerchantName()
        Returns the merchant name registered for this Context. This merchant name is teh key that unqiuely identifies a merchant context in BankIDServer.
        Returns:
        String The merchant name
      • getSignerCertificateCommonName

        public String getSignerCertificateCommonName()
        Returns the CommonName value from teh merchant's signer certificate. This value is the claimedMerchantName parameter value that the merchant must return to the BankIDClient when communicating with it.
        Returns:
        String The CommonName from the merchant signer certificate
      • setBankidEnvironment

        public void setBankidEnvironment(String string)
        Sets the BankID Environment
        Parameters:
        string - The BankID Envrironment
      • setMerchantName

        public void setMerchantName(String string)
        Sets the merchant name
        Parameters:
        string - String the merchant name
      • setSignerCertificateCommonName

        public void setSignerCertificateCommonName(String string)
        Sets the signer certificate CommonName
        Parameters:
        string - String holding the signer certificaste's CommonName
      • getMode

        public String getMode()
        Returns the mode that the Context operates in. This value tells how the merchant credentials are stored. the merchant cerdentials (keys and certs) may be stored in a p12 file or a hsm. Check which mode is supported for every release.
        Returns:
        String The context mode (p12 or hsm)
      • setMode

        public void setMode(String string)
        Sets the merchant context mode
        Parameters:
        string - String holding the mode (p12 or hsm)
      • getGrantedCertificatePolicies

        public String getGrantedCertificatePolicies()
        Returns a comma-delimintated String of the granted certificate policy oids configured for this Context
        Returns:
        String comma-delimintated String of the granted certificate policy oids
      • setGrantedCertificatePolicies

        public void setGrantedCertificatePolicies(String string)
        Sets a comma-delimintated String of the granted certificate policy oids configured for this Context
        Parameters:
        string - comma-delimintated String of the granted certificate policy oids
      • setMerchantContext

        public void setMerchantContext(MerchantContext context)

Copyright © 2017 Nets Branch Norway. All Rights Reserved.