public static function getPublicCertificates() {
    $req = new GetPublicCertificateForAppRequest();
    $resp = new GetPublicCertificateForAppResponse();

    try {
      ApiProxy::makeSyncCall(self::PACKAGE_NAME, 'GetPublicCertificatesForApp',
          $req, $resp);
    } catch (ApplicationError $e) {
      throw self::applicationErrorToException($e);
    }

    $result = [];

    foreach ($resp->getPublicCertificateListList() as $cert) {
      $result[] = new PublicCertificate($cert->getKeyName(),
                                        $cert->getX509CertificatePem());
    }

    return $result;
  }
public static function getPublicCertificates() {
    $req = new GetPublicCertificateForAppRequest();
    $resp = new GetPublicCertificateForAppResponse();

    try {
      ApiProxy::makeSyncCall(self::PACKAGE_NAME, 'GetPublicCertificatesForApp',
          $req, $resp);
    } catch (ApplicationError $e) {
      throw self::applicationErrorToException($e);
    }

    $result = [];

    foreach ($resp->getPublicCertificateListList() as $cert) {
      $result[] = new PublicCertificate($cert->getKeyName(),
                                        $cert->getX509CertificatePem());
    }

    return $result;
  }
public static function getPublicCertificates ( ) { $ req = new GetPublicCertificateForAppRequest ( ) ; $ resp = new GetPublicCertificateForAppResponse ( ) ; try { ApiProxy :: makeSyncCall ( self :: PACKAGE_NAME , 'GetPublicCertificatesForApp' , $ req , $ resp ) ; } catch ( ApplicationError $ e ) { throw self :: applicationErrorToException ( $ e ) ; } $ result = [ ] ; foreach ( $ resp -> getPublicCertificateListList ( ) as $ cert ) { $ result [ ] = new PublicCertificate ( $ cert -> getKeyName ( ) , $ cert -> getX509CertificatePem ( ) ) ; } return $ result ; }
Get the list of public certifates for the application.

@throws AppIdentityException If there is an error using the AppIdentity
service.

@return PublicCertificate[] An array of the applications public
certificates.
Get the list of public certifates for the application .