Skip to content

Commit

Permalink
#1 cleanups for search testing
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed Aug 29, 2019
1 parent 7e83c0a commit 3b204f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
* @author Mike Conway - NIEHS
*
*/
public interface JwtIssueService {
public abstract class AbstractJwtIssueService {

/**
* Given a subject, issue a proper JWT that can be understood by Metalnx plugins
*
* @param subject {@code String} with the subject for the JWT claim
* @return {@code String} with the JWT token
*/
public String issueJwtToken(String subject);
public abstract String issueJwtToken(String subject);

/**
* Given a JWT token, return the decoded claims
*
* @param token {@code String} with the JWT token
* @return {@link Jws} with the associated claims
*/
public Jws<Claims> decodeJwtToken(String token);
public abstract Jws<Claims> decodeJwtToken(String token);

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author Mike Conway - NIEHS
*
*/
public class JwtIssueServiceImpl implements JwtIssueService {
public class JwtIssueServiceImpl extends AbstractJwtIssueService {

public static final Logger log = LoggerFactory.getLogger(JwtIssueServiceImpl.class);

Expand All @@ -43,7 +43,7 @@ public JwtIssueServiceImpl(final JwtServiceConfig jwtServiceConfig) {
* (non-Javadoc)
*
* @see
* org.irods.jargon.irodsext.jwt.JwtIssueService#issueJwtToken(java.lang.String)
* org.irods.jargon.irodsext.jwt.AbstractJwtIssueService#issueJwtToken(java.lang.String)
*/
@Override
public String issueJwtToken(final String subject) {
Expand All @@ -62,7 +62,7 @@ public String issueJwtToken(final String subject) {
/*
* (non-Javadoc)
*
* @see org.irods.jargon.irodsext.jwt.JwtIssueService#decodeJwtToken(java.lang.
* @see org.irods.jargon.irodsext.jwt.AbstractJwtIssueService#decodeJwtToken(java.lang.
* String)
*/
@Override
Expand Down

0 comments on commit 3b204f4

Please sign in to comment.