Java Code Examples for org.springframework.security.oauth2.jwt.Jwt#getIssuer()

The following examples show how to use org.springframework.security.oauth2.jwt.Jwt#getIssuer() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProductCompositeServiceImpl.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
private void logAuthorizationInfo(Jwt jwt) {
    if (jwt == null) {
        LOG.warn("No JWT supplied, running tests are we?");
    } else {
        if (LOG.isDebugEnabled()) {
            URL issuer = jwt.getIssuer();
            List<String> audience = jwt.getAudience();
            Object subject = jwt.getClaims().get("sub");
            Object scopes = jwt.getClaims().get("scope");
            Object expires = jwt.getClaims().get("exp");

            LOG.debug("Authorization info: Subject: {}, scopes: {}, expires {}: issuer: {}, audience: {}", subject, scopes, expires, issuer, audience);
        }
    }
}
 
Example 2
Source File: ProductCompositeServiceImpl.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
private void logAuthorizationInfo(Jwt jwt) {
    if (jwt == null) {
        LOG.warn("No JWT supplied, running tests are we?");
    } else {
        if (LOG.isDebugEnabled()) {
            URL issuer = jwt.getIssuer();
            List<String> audience = jwt.getAudience();
            Object subject = jwt.getClaims().get("sub");
            Object scopes = jwt.getClaims().get("scope");
            Object expires = jwt.getClaims().get("exp");

            LOG.debug("Authorization info: Subject: {}, scopes: {}, expires {}: issuer: {}, audience: {}", subject, scopes, expires, issuer, audience);
        }
    }
}
 
Example 3
Source File: ProductCompositeServiceImpl.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
private void logAuthorizationInfo(Jwt jwt) {
    if (jwt == null) {
        LOG.warn("No JWT supplied, running tests are we?");
    } else {
        if (LOG.isDebugEnabled()) {
            URL issuer = jwt.getIssuer();
            List<String> audience = jwt.getAudience();
            Object subject = jwt.getClaims().get("sub");
            Object scopes = jwt.getClaims().get("scope");
            Object expires = jwt.getClaims().get("exp");

            LOG.debug("Authorization info: Subject: {}, scopes: {}, expires {}: issuer: {}, audience: {}", subject, scopes, expires, issuer, audience);
        }
    }
}
 
Example 4
Source File: ProductCompositeServiceImpl.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
private void logAuthorizationInfo(Jwt jwt) {
    if (jwt == null) {
        LOG.warn("No JWT supplied, running tests are we?");
    } else {
        if (LOG.isDebugEnabled()) {
            URL issuer = jwt.getIssuer();
            List<String> audience = jwt.getAudience();
            Object subject = jwt.getClaims().get("sub");
            Object scopes = jwt.getClaims().get("scope");
            Object expires = jwt.getClaims().get("exp");

            LOG.debug("Authorization info: Subject: {}, scopes: {}, expires {}: issuer: {}, audience: {}", subject, scopes, expires, issuer, audience);
        }
    }
}
 
Example 5
Source File: ProductCompositeServiceImpl.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
private void logAuthorizationInfo(Jwt jwt) {
    if (jwt == null) {
        LOG.warn("No JWT supplied, running tests are we?");
    } else {
        if (LOG.isDebugEnabled()) {
            URL issuer = jwt.getIssuer();
            List<String> audience = jwt.getAudience();
            Object subject = jwt.getClaims().get("sub");
            Object scopes = jwt.getClaims().get("scope");
            Object expires = jwt.getClaims().get("exp");

            LOG.debug("Authorization info: Subject: {}, scopes: {}, expires {}: issuer: {}, audience: {}", subject, scopes, expires, issuer, audience);
        }
    }
}
 
Example 6
Source File: ProductCompositeServiceImpl.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
private void logAuthorizationInfo(Jwt jwt) {
    if (jwt == null) {
        LOG.warn("No JWT supplied, running tests are we?");
    } else {
        if (LOG.isDebugEnabled()) {
            URL issuer = jwt.getIssuer();
            List<String> audience = jwt.getAudience();
            Object subject = jwt.getClaims().get("sub");
            Object scopes = jwt.getClaims().get("scope");
            Object expires = jwt.getClaims().get("exp");

            LOG.debug("Authorization info: Subject: {}, scopes: {}, expires {}: issuer: {}, audience: {}", subject, scopes, expires, issuer, audience);
        }
    }
}
 
Example 7
Source File: ProductCompositeServiceImpl.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
private void logAuthorizationInfo(Jwt jwt) {
    if (jwt == null) {
        LOG.warn("No JWT supplied, running tests are we?");
    } else {
        if (LOG.isDebugEnabled()) {
            URL issuer = jwt.getIssuer();
            List<String> audience = jwt.getAudience();
            Object subject = jwt.getClaims().get("sub");
            Object scopes = jwt.getClaims().get("scope");
            Object expires = jwt.getClaims().get("exp");

            LOG.debug("Authorization info: Subject: {}, scopes: {}, expires {}: issuer: {}, audience: {}", subject, scopes, expires, issuer, audience);
        }
    }
}
 
Example 8
Source File: ProductCompositeServiceImpl.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
private void logAuthorizationInfo(Jwt jwt) {
    if (jwt == null) {
        LOG.warn("No JWT supplied, running tests are we?");
    } else {
        if (LOG.isDebugEnabled()) {
            URL issuer = jwt.getIssuer();
            List<String> audience = jwt.getAudience();
            Object subject = jwt.getClaims().get("sub");
            Object scopes = jwt.getClaims().get("scope");
            Object expires = jwt.getClaims().get("exp");

            LOG.debug("Authorization info: Subject: {}, scopes: {}, expires {}: issuer: {}, audience: {}", subject, scopes, expires, issuer, audience);
        }
    }
}
 
Example 9
Source File: ProductCompositeServiceImpl.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
private void logAuthorizationInfo(Jwt jwt) {
    if (jwt == null) {
        LOG.warn("No JWT supplied, running tests are we?");
    } else {
        if (LOG.isDebugEnabled()) {
            URL issuer = jwt.getIssuer();
            List<String> audience = jwt.getAudience();
            Object subject = jwt.getClaims().get("sub");
            Object scopes = jwt.getClaims().get("scope");
            Object expires = jwt.getClaims().get("exp");

            LOG.debug("Authorization info: Subject: {}, scopes: {}, expires {}: issuer: {}, audience: {}", subject, scopes, expires, issuer, audience);
        }
    }
}
 
Example 10
Source File: ProductCompositeServiceImpl.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
private void logAuthorizationInfo(Jwt jwt) {
    if (jwt == null) {
        LOG.warn("No JWT supplied, running tests are we?");
    } else {
        if (LOG.isDebugEnabled()) {
            URL issuer = jwt.getIssuer();
            List<String> audience = jwt.getAudience();
            Object subject = jwt.getClaims().get("sub");
            Object scopes = jwt.getClaims().get("scope");
            Object expires = jwt.getClaims().get("exp");

            LOG.debug("Authorization info: Subject: {}, scopes: {}, expires {}: issuer: {}, audience: {}", subject, scopes, expires, issuer, audience);
        }
    }
}