PHP 클래스 PayPal\Auth\Openid\PPOpenIdTokeninfo

상속: extends PayPal\Common\PPModel
파일 보기 프로젝트 열기: paypal/sdk-core-php 1 사용 예제들

공개 메소드들

메소드 설명
createFromAuthorizationCode ( array $params, $clientId, $clientSecret, PPApiContext $apiContext = null ) : PPOpenIdTokeninfo Creates an Access Token from an Authorization Code.
createFromRefreshToken ( array $params, APIContext $apiContext = null ) : PPOpenIdTokeninfo Creates an Access Token from an Refresh Token.
getAccessToken ( ) : string The access token issued by the authorization server.
getExpiresIn ( ) : integer The lifetime in seconds of the access token.
getIdToken ( ) : string The id_token is a session token assertion that denotes the user's authentication status
getRefreshToken ( ) : string The refresh token, which can be used to obtain new access tokens using the same authorization grant as described in OAuth2.0 RFC6749 in Section 6.
getScope ( ) : string OPTIONAL, if identical to the scope requested by the client; otherwise, REQUIRED.
getTokenType ( ) : string The type of the token issued as described in OAuth2.0 RFC6749 (Section 7.1). Value is case insensitive.
setAccessToken ( string $access_token ) The access token issued by the authorization server.
setExpiresIn ( integer $expires_in ) The lifetime in seconds of the access token.
setIdToken ( string $id_token ) The id_token is a session token assertion that denotes the user's authentication status
setRefreshToken ( string $refresh_token ) The refresh token, which can be used to obtain new access tokens using the same authorization grant as described in OAuth2.0 RFC6749 in Section 6.
setScope ( string $scope ) OPTIONAL, if identical to the scope requested by the client; otherwise, REQUIRED.
setTokenType ( string $token_type ) The type of the token issued as described in OAuth2.0 RFC6749 (Section 7.1). Value is case insensitive.

메소드 상세

createFromAuthorizationCode() 공개 정적인 메소드

Creates an Access Token from an Authorization Code.
public static createFromAuthorizationCode ( array $params, $clientId, $clientSecret, PPApiContext $apiContext = null ) : PPOpenIdTokeninfo
$params array (allowed values are client_id, client_secret, grant_type, code and redirect_uri) (required) client_id from developer portal (required) client_secret from developer portal (required) code is Authorization code previously received from the authorization server (required) redirect_uri Redirection endpoint that must match the one provided during the authorization request that ended in receiving the authorization code. (optional) grant_type is the Token grant type. Defaults to authorization_code
$apiContext PayPal\Common\PPApiContext Optional API Context
리턴 PPOpenIdTokeninfo

createFromRefreshToken() 공개 메소드

Creates an Access Token from an Refresh Token.
public createFromRefreshToken ( array $params, APIContext $apiContext = null ) : PPOpenIdTokeninfo
$params array (allowed values are grant_type and scope) (required) client_id from developer portal (required) client_secret from developer portal (optional) refresh_token refresh token. If one is not passed, refresh token from the current object is used. (optional) grant_type is the Token grant type. Defaults to refresh_token (optional) scope is an array that either the same or a subset of the scope passed to the authorization request
$apiContext APIContext Optional API Context
리턴 PPOpenIdTokeninfo

getAccessToken() 공개 메소드

The access token issued by the authorization server.
public getAccessToken ( ) : string
리턴 string

getExpiresIn() 공개 메소드

The lifetime in seconds of the access token.
public getExpiresIn ( ) : integer
리턴 integer

getIdToken() 공개 메소드

The id_token is a session token assertion that denotes the user's authentication status
public getIdToken ( ) : string
리턴 string

getRefreshToken() 공개 메소드

The refresh token, which can be used to obtain new access tokens using the same authorization grant as described in OAuth2.0 RFC6749 in Section 6.
public getRefreshToken ( ) : string
리턴 string

getScope() 공개 메소드

OPTIONAL, if identical to the scope requested by the client; otherwise, REQUIRED.
public getScope ( ) : string
리턴 string

getTokenType() 공개 메소드

The type of the token issued as described in OAuth2.0 RFC6749 (Section 7.1). Value is case insensitive.
public getTokenType ( ) : string
리턴 string

setAccessToken() 공개 메소드

The access token issued by the authorization server.
public setAccessToken ( string $access_token )
$access_token string

setExpiresIn() 공개 메소드

The lifetime in seconds of the access token.
public setExpiresIn ( integer $expires_in )
$expires_in integer

setIdToken() 공개 메소드

The id_token is a session token assertion that denotes the user's authentication status
public setIdToken ( string $id_token )
$id_token string

setRefreshToken() 공개 메소드

The refresh token, which can be used to obtain new access tokens using the same authorization grant as described in OAuth2.0 RFC6749 in Section 6.
public setRefreshToken ( string $refresh_token )
$refresh_token string

setScope() 공개 메소드

OPTIONAL, if identical to the scope requested by the client; otherwise, REQUIRED.
public setScope ( string $scope )
$scope string

setTokenType() 공개 메소드

The type of the token issued as described in OAuth2.0 RFC6749 (Section 7.1). Value is case insensitive.
public setTokenType ( string $token_type )
$token_type string