Subversion Repositories SmartDukaan

Rev

Rev 23428 | Rev 23568 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23428 Rev 23429
Line 126... Line 126...
126
	
126
	
127
	private static DecodedJWT parse(String token)
127
	private static DecodedJWT parse(String token)
128
		throws ProfitMandiBusinessException{
128
		throws ProfitMandiBusinessException{
129
		try{
129
		try{
130
			JWTVerifier verifier = JWT.require(ALGORITHM)
130
			JWTVerifier verifier = JWT.require(ALGORITHM)
131
	            .withIssuer(PROFIT_MANDI)
131
	            .withIssuer(PROFIT_MANDI).acceptExpiresAt(100000000)
132
	            .build(); //Reusable verifier instance
132
	            .build(); //Reusable verifier instance
133
	        return verifier.verify(token);
133
	        return verifier.verify(token);
134
		} catch (JWTDecodeException exception){
134
		} catch (JWTDecodeException exception){
135
			throw new ProfitMandiBusinessException(ProfitMandiConstants.TOKEN, token, "USR_1010");
135
			throw new ProfitMandiBusinessException(ProfitMandiConstants.TOKEN, token, "USR_1010");
136
		} catch(InvalidClaimException invalidClaimException){
136
		} catch(InvalidClaimException invalidClaimException){