📄 authorizationcheck.java
字号:
/*
* Created on 2005-6-28
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package com.nari.pmos.proxy.common;
import java.security.Principal;
/**
* @author hujun
*
* To change the template for this generated type comment go to Window -
* Preferences - Java - Code Generation - Code and Comments
*/
public class AuthorizationCheck {
static boolean Check(javax.ejb.EJBContext ctx, String beanName,
String methodName) {
try {
Principal principal = ctx.getCallerPrincipal();
String user = principal.getName();
// 通过本地接口验证方法
} catch (Exception ex) {
return false;
}
return true;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -