Package com.yahoo.vespa.athenz.zpe
Class DefaultZpe
java.lang.Object
com.yahoo.vespa.athenz.zpe.DefaultZpe
- All Implemented Interfaces:
Zpe
The default implementation of
Zpe
.
This implementation is currently based on the official Athenz ZPE library.- Author:
- bjorncs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheckAccessAllowed
(AthenzAccessToken accessToken, AthenzResourceName resourceName, String action) checkAccessAllowed
(AthenzAccessToken accessToken, X509Certificate identityCertificate, AthenzResourceName resourceName, String action) checkAccessAllowed
(ZToken roleToken, AthenzResourceName resourceName, String action) checkAccessAllowed
(X509Certificate roleCertificate, AthenzResourceName resourceName, String action)
-
Constructor Details
-
DefaultZpe
public DefaultZpe()
-
-
Method Details
-
checkAccessAllowed
public AuthorizationResult checkAccessAllowed(ZToken roleToken, AthenzResourceName resourceName, String action) - Specified by:
checkAccessAllowed
in interfaceZpe
-
checkAccessAllowed
public AuthorizationResult checkAccessAllowed(X509Certificate roleCertificate, AthenzResourceName resourceName, String action) - Specified by:
checkAccessAllowed
in interfaceZpe
-
checkAccessAllowed
public AuthorizationResult checkAccessAllowed(AthenzAccessToken accessToken, X509Certificate identityCertificate, AthenzResourceName resourceName, String action) - Specified by:
checkAccessAllowed
in interfaceZpe
-
checkAccessAllowed
public AuthorizationResult checkAccessAllowed(AthenzAccessToken accessToken, AthenzResourceName resourceName, String action) - Specified by:
checkAccessAllowed
in interfaceZpe
-