Jose\Object\JWKInterface::getAll PHP 메소드

getAll() 공개 메소드

Get all values stored in the JWK object.
public getAll ( ) : array
리턴 array Values of the JWK object
    public function getAll();

Usage Example

예제 #1
0
파일: ECKey.php 프로젝트: spomky-labs/jose
 /**
  * @param \Jose\Object\JWKInterface|string|array $data
  */
 public function __construct($data)
 {
     parent::__construct();
     if ($data instanceof JWKInterface) {
         $this->loadJWK($data->getAll());
     } elseif (is_array($data)) {
         $this->loadJWK($data);
     } elseif (is_string($data)) {
         $this->loadPEM($data);
     } else {
         throw new \InvalidArgumentException('Unsupported input');
     }
     $this->private = isset($this->values['d']);
 }