public class DefaultSecuredPath extends SecuredObjectBase implements SecuredPath
| 限定符和类型 | 字段和说明 |
|---|---|
protected Boolean |
allowAnonymous |
protected Boolean |
allowClientOnly |
protected Boolean |
allowRememberMe |
protected SecurityFailureHandler |
failureHandler |
protected leap.lang.path.PathPattern |
pattern |
protected String[] |
permissions |
protected String[] |
roles |
protected Route |
route |
protected Object |
source |
COMPARATOR| 构造器和说明 |
|---|
DefaultSecuredPath(Object source,
Route route,
leap.lang.path.PathPattern pattern,
Boolean allowAnonymous,
Boolean allowClientOnly,
Boolean allowRememberMe,
SecurityFailureHandler failureHandler,
String[] permissions,
String[] roles) |
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
getAllowAnonymous()
Returns the allow-anonymous status, may be null.
|
Boolean |
getAllowClientOnly()
Returns the allow-clientOnly status, may be null.
|
Boolean |
getAllowRememberMe()
Returns the allow-rememberMe status, may be null.
|
SecurityFailureHandler |
getFailureHandler()
Optional.
|
leap.lang.path.PathPattern |
getPattern()
Returns the path pattern.
|
String[] |
getPermissions()
Returns the permissions allowed.
|
String[] |
getRoles()
Returns the roles allowed.
|
Route |
getRoute()
Optional.
|
Object |
getSource() |
Boolean |
tryCheckAuthentication(SecurityContextHolder context)
Returns true if the path allows the authentication.
|
Boolean |
tryCheckAuthorization(SecurityContextHolder context)
Returns true if the path allows the authorization.
|
checkPermissions, checkRolesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTo, isAllowAnonymous, isAllowClientOnly, isAllowRememberMe, isDenyAnonymous, isDenyClientOnly, isDenyRememberMe, matches, matchescheckAuthentication, checkAuthorizationprotected final Object source
protected final Route route
protected final leap.lang.path.PathPattern pattern
protected final Boolean allowAnonymous
protected final Boolean allowClientOnly
protected final Boolean allowRememberMe
protected final SecurityFailureHandler failureHandler
protected final String[] permissions
protected final String[] roles
public Object getSource()
getSource 在接口中 leap.lang.Sourcedpublic Route getRoute()
SecuredPathgetRoute 在接口中 SecuredPathpublic leap.lang.path.PathPattern getPattern()
getPattern 在接口中 SecuredPathpublic Boolean getAllowAnonymous()
SecuredPathgetAllowAnonymous 在接口中 SecuredPathpublic Boolean getAllowClientOnly()
SecuredPathgetAllowClientOnly 在接口中 SecuredPathpublic Boolean getAllowRememberMe()
SecuredPathgetAllowRememberMe 在接口中 SecuredPathpublic SecurityFailureHandler getFailureHandler()
SecuredPathSecurityFailureHandler.getFailureHandler 在接口中 SecuredPathpublic String[] getPermissions()
getPermissions 在接口中 SecuredPathpublic String[] getRoles()
getRoles 在接口中 SecuredPathpublic Boolean tryCheckAuthentication(SecurityContextHolder context)
tryCheckAuthentication 在接口中 SecuredObjectpublic Boolean tryCheckAuthorization(SecurityContextHolder context)
tryCheckAuthorization 在接口中 SecuredObjectCopyright © 2019. All rights reserved.