PHP 클래스 Psecio\Jwt\JwtTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: psecio/jwt

공개 메소드들

메소드 설명
testAddClaim ( ) Testing the addition of a claim via the JWT class
testBase64Decode ( ) Testing the custom base64 decoding
testBase64Encode ( ) Testing the custom base64 encoding
testDecodeJwtDataInvalidSections ( ) Test the decoding of an invalid token
testDecodeJwtDataInvalidSignature ( ) Test the decoding of an invalid token signature
testDecodeJwtDataValid ( ) Test the decoding of a valid JWT token
testEncodeJwtData ( ) Test the encoding of some data into the JWT format
testEncryptDecryptToken ( ) Test the encryption and decryption of the token data
testGetSetClaimsCollection ( ) Testing the getter/setter for the Claims data
testGetSetHeader ( ) Test the getter/setter for the Header instance
testHashEquals ( ) Testing the results of the custom hash_equals function
testMagicGetClaimValue ( ) Test getting the claim value with the magic method
testSetClaimInvalidType ( ) Test the setting of a claim with an invalid type
testSignWithPrivateKeyBadHashType ( ) Test the signing with private key data (verify decode)
testSignWithPrivateKeyInvalidKey ( ) Test the signing with private key data (verify decode)
testSignWithPrivateKeySignFailure ( ) Test the signing with private key data (verify decode)
testSignWithPrivateKeyValid ( ) Test the signing with private key data (verify decode)
testVerifyJwtSignatureNoAlg ( ) Try the verify call on a JWT with no algorithm in the header
testVerifyJwtSignatureNoAudience ( ) Try the verify call on a JWT with no audience defined (defined but empty) in the header
testVerifyJwtSignatureNotProcessBefore ( ) Try the verify call on a JWT with no expiration defined in the header
testVerifyJwtSignaturePastExpire ( ) Try the verify call on a JWT with no expiration defined in the header
testVerifyJwtSignatureValid ( ) Test the valid verification of a signature with verify() method

메소드 상세

testAddClaim() 공개 메소드

Testing the addition of a claim via the JWT class
public testAddClaim ( )

testBase64Decode() 공개 메소드

Testing the custom base64 decoding
public testBase64Decode ( )

testBase64Encode() 공개 메소드

Testing the custom base64 encoding
public testBase64Encode ( )

testDecodeJwtDataInvalidSections() 공개 메소드

Test the decoding of an invalid token

testDecodeJwtDataInvalidSignature() 공개 메소드

Test the decoding of an invalid token signature

testDecodeJwtDataValid() 공개 메소드

Test the decoding of a valid JWT token

testEncodeJwtData() 공개 메소드

Test the encoding of some data into the JWT format
public testEncodeJwtData ( )

testEncryptDecryptToken() 공개 메소드

Test the encryption and decryption of the token data

testGetSetClaimsCollection() 공개 메소드

Testing the getter/setter for the Claims data

testGetSetHeader() 공개 메소드

Test the getter/setter for the Header instance
public testGetSetHeader ( )

testHashEquals() 공개 메소드

Testing the results of the custom hash_equals function
public testHashEquals ( )

testMagicGetClaimValue() 공개 메소드

Test getting the claim value with the magic method

testSetClaimInvalidType() 공개 메소드

Test the setting of a claim with an invalid type

testSignWithPrivateKeyBadHashType() 공개 메소드

Test the signing with private key data (verify decode)

testSignWithPrivateKeyInvalidKey() 공개 메소드

Test the signing with private key data (verify decode)

testSignWithPrivateKeySignFailure() 공개 메소드

Test the signing with private key data (verify decode)

testSignWithPrivateKeyValid() 공개 메소드

Test the signing with private key data (verify decode)

testVerifyJwtSignatureNoAlg() 공개 메소드

Try the verify call on a JWT with no algorithm in the header

testVerifyJwtSignatureNoAudience() 공개 메소드

Try the verify call on a JWT with no audience defined (defined but empty) in the header

testVerifyJwtSignatureNotProcessBefore() 공개 메소드

Try the verify call on a JWT with no expiration defined in the header

testVerifyJwtSignaturePastExpire() 공개 메소드

Try the verify call on a JWT with no expiration defined in the header

testVerifyJwtSignatureValid() 공개 메소드

Test the valid verification of a signature with verify() method