public class JdbcApprovalStore extends Object implements ApprovalStore
Constructor and Description |
---|
JdbcApprovalStore(DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
boolean |
addApprovals(Collection<Approval> approvals) |
List<Approval> |
getApprovals(String userName,
String clientId) |
boolean |
purgeExpiredApprovals() |
boolean |
revokeApprovals(Collection<Approval> approvals) |
void |
setAddApprovalStatement(String addApprovalStatement) |
void |
setDeleteApprovalStatment(String deleteApprovalStatment) |
void |
setExpireApprovalStatement(String expireApprovalStatement) |
void |
setFindApprovalStatement(String findApprovalStatement) |
void |
setHandleRevocationsAsExpiry(boolean handleRevocationsAsExpiry) |
void |
setRefreshApprovalStatement(String refreshApprovalStatement) |
public JdbcApprovalStore(DataSource dataSource)
public void setHandleRevocationsAsExpiry(boolean handleRevocationsAsExpiry)
public void setAddApprovalStatement(String addApprovalStatement)
public void setFindApprovalStatement(String findApprovalStatement)
public void setDeleteApprovalStatment(String deleteApprovalStatment)
public void setExpireApprovalStatement(String expireApprovalStatement)
public void setRefreshApprovalStatement(String refreshApprovalStatement)
public boolean addApprovals(Collection<Approval> approvals)
addApprovals
in interface ApprovalStore
public boolean revokeApprovals(Collection<Approval> approvals)
revokeApprovals
in interface ApprovalStore
public boolean purgeExpiredApprovals()
public List<Approval> getApprovals(String userName, String clientId)
getApprovals
in interface ApprovalStore
Copyright © 2019. All rights reserved.