当前位置: 首页>>代码示例>>Java>>正文


Java SecurityException.getMessage方法代码示例

本文整理汇总了Java中org.fosstrak.ale.exception.SecurityException.getMessage方法的典型用法代码示例。如果您正苦于以下问题:Java SecurityException.getMessage方法的具体用法?Java SecurityException.getMessage怎么用?Java SecurityException.getMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.fosstrak.ale.exception.SecurityException的用法示例。


在下文中一共展示了SecurityException.getMessage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addPermissions

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "AddPermissionsResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "addPermissionsReturn")
@WebMethod
public AddPermissionsResult addPermissions(
		@WebParam(partName = "parms", name = "AddPermissions", targetNamespace = "urn:epcglobal:aleac:wsdl:1") AddPermissions arg0)
		throws NoSuchRoleExceptionResponse,
		UnsupportedOperationExceptionResponse, SecurityExceptionResponse,
		ImplementationExceptionResponse, NoSuchPermissionExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aleac.addPermissions(arg0.getRoleName(), arg0.getPermissionNames().getPermissionName());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new AddPermissionsResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:18,代码来源:ALEACServicePortTypeImpl.java

示例2: addRoles

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "AddRolesResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "addRolesReturn")
@WebMethod
public AddRolesResult addRoles(
		@WebParam(partName = "parms", name = "AddRoles", targetNamespace = "urn:epcglobal:aleac:wsdl:1") AddRoles arg0)
		throws NoSuchClientIdentityExceptionResponse,
		NoSuchRoleExceptionResponse, UnsupportedOperationExceptionResponse,
		SecurityExceptionResponse, ImplementationExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aleac.addRoles(arg0.getIdentityName(), arg0.getRoleNames().getRoleName());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new AddRolesResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:18,代码来源:ALEACServicePortTypeImpl.java

示例3: defineClientIdentity

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "DefineClientIdentityResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "defineClientIdentityReturn")
@WebMethod
public DefineClientIdentityResult defineClientIdentity(
		@WebParam(partName = "parms", name = "DefineClientIdentity", targetNamespace = "urn:epcglobal:aleac:wsdl:1") DefineClientIdentity arg0)
		throws UnsupportedOperationExceptionResponse,
		SecurityExceptionResponse, ImplementationExceptionResponse,
		ClientIdentityValidationExceptionResponse,
		DuplicateClientIdentityExceptionResponse {
	log.debug("defineClientIdentity whose userId: "+arg0.getIdentityName());
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aleac.defineClientIdentity(arg0.getIdentityName(), arg0.getId());
		
	} catch (SecurityException e) {
		e.printStackTrace();
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new DefineClientIdentityResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:22,代码来源:ALEACServicePortTypeImpl.java

示例4: definePermission

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "DefinePermissionResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "definePermissionReturn")
@WebMethod
public DefinePermissionResult definePermission(
		@WebParam(partName = "parms", name = "DefinePermission", targetNamespace = "urn:epcglobal:aleac:wsdl:1") DefinePermission arg0)
		throws UnsupportedOperationExceptionResponse,
		PermissionValidationExceptionResponse, SecurityExceptionResponse,
		ImplementationExceptionResponse,
		DuplicatePermissionExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aleac.definePermission(arg0.getPermName(), arg0.getPerm());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new DefinePermissionResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:19,代码来源:ALEACServicePortTypeImpl.java

示例5: defineRole

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "DefineRoleResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "defineRoleReturn")
@WebMethod
public DefineRoleResult defineRole(
		@WebParam(partName = "parms", name = "DefineRole", targetNamespace = "urn:epcglobal:aleac:wsdl:1") DefineRole arg0)
		throws UnsupportedOperationExceptionResponse,
		DuplicateRoleExceptionResponse, RoleValidationExceptionResponse,
		SecurityExceptionResponse, ImplementationExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aleac.defineRole(arg0.getRoleName(), arg0.getRole());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new DefineRoleResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:18,代码来源:ALEACServicePortTypeImpl.java

示例6: getPermission

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "GetPermissionResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "getPermissionReturn")
@WebMethod
public ACPermission getPermission(
		@WebParam(partName = "parms", name = "GetPermission", targetNamespace = "urn:epcglobal:aleac:wsdl:1") GetPermission arg0)
		throws UnsupportedOperationExceptionResponse,
		SecurityExceptionResponse, ImplementationExceptionResponse,
		NoSuchPermissionExceptionResponse {
	
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		return aleac.getPermission(arg0.getPermName());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:17,代码来源:ALEACServicePortTypeImpl.java

示例7: getRole

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "GetRoleResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "getRoleReturn")
@WebMethod
public ACRole getRole(
		@WebParam(partName = "parms", name = "GetRole", targetNamespace = "urn:epcglobal:aleac:wsdl:1") GetRole arg0)
		throws NoSuchRoleExceptionResponse,
		UnsupportedOperationExceptionResponse, SecurityExceptionResponse,
		ImplementationExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		return aleac.getRole(arg0.getRoleName());
		
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:17,代码来源:ALEACServicePortTypeImpl.java

示例8: removeRoles

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "RemoveRolesResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "removeRolesReturn")
@WebMethod
public RemoveRolesResult removeRoles(
		@WebParam(partName = "parms", name = "RemoveRoles", targetNamespace = "urn:epcglobal:aleac:wsdl:1") RemoveRoles arg0)
		throws NoSuchClientIdentityExceptionResponse,
		UnsupportedOperationExceptionResponse, SecurityExceptionResponse,
		ImplementationExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aleac.removeRoles(arg0.getIdentityName(), arg0.getRoleNames().getRoleName());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new RemoveRolesResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:18,代码来源:ALEACServicePortTypeImpl.java

示例9: undefineClientIdentity

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "UndefineClientIdentityResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "undefineClientIdentityReturn")
@WebMethod
public UndefineClientIdentityResult undefineClientIdentity(
		@WebParam(partName = "parms", name = "UndefineClientIdentity", targetNamespace = "urn:epcglobal:aleac:wsdl:1") UndefineClientIdentity arg0)
		throws NoSuchClientIdentityExceptionResponse,
		UnsupportedOperationExceptionResponse, SecurityExceptionResponse,
		ImplementationExceptionResponse {
	log.debug("undefineClientIdentity whose userId: "+arg0.getIdentityName());
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aleac.undefineClientIdentity(arg0.getIdentityName());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new UndefineClientIdentityResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:19,代码来源:ALEACServicePortTypeImpl.java

示例10: undefinePermission

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "UndefinePermissionResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "undefinePermissionReturn")
@WebMethod
public UndefinePermissionResult undefinePermission(
		@WebParam(partName = "parms", name = "UndefinePermission", targetNamespace = "urn:epcglobal:aleac:wsdl:1") UndefinePermission arg0)
		throws UnsupportedOperationExceptionResponse,
		SecurityExceptionResponse, ImplementationExceptionResponse,
		NoSuchPermissionExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aleac.undefinePermission(arg0.getPermName());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new UndefinePermissionResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:18,代码来源:ALEACServicePortTypeImpl.java

示例11: undefineRole

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "UndefineRoleResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "undefineRoleReturn")
@WebMethod
public UndefineRoleResult undefineRole(
		@WebParam(partName = "parms", name = "UndefineRole", targetNamespace = "urn:epcglobal:aleac:wsdl:1") UndefineRole arg0)
		throws NoSuchRoleExceptionResponse,
		UnsupportedOperationExceptionResponse, SecurityExceptionResponse,
		ImplementationExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aleac.undefineRole(arg0.getRoleName());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new UndefineRoleResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:18,代码来源:ALEACServicePortTypeImpl.java

示例12: defineTMSpec

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "DefineTMSpecResult", targetNamespace = "urn:epcglobal:aletm:wsdl:1", partName = "defineTMSpecReturn")
@WebMethod
public DefineTMSpecResult defineTMSpec(
		@WebParam(partName = "parms", name = "DefineTMSpec", targetNamespace = "urn:epcglobal:aletm:wsdl:1") DefineTMSpec arg0)
		throws TMSpecValidationExceptionResponse,
		DuplicateNameExceptionResponse, SecurityExceptionResponse,
		ImplementationExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aletm.defineTMSpec(arg0.getSpecName(), arg0.getSpec());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new DefineTMSpecResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:18,代码来源:ALETMServicePortTypeImpl.java

示例13: undefineTMSpec

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "UndefineTMSpecResult", targetNamespace = "urn:epcglobal:aletm:wsdl:1", partName = "undefineTMSpecReturn")
@WebMethod
public UndefineTMSpecResult undefineTMSpec(
		@WebParam(partName = "parms", name = "UndefineTMSpec", targetNamespace = "urn:epcglobal:aletm:wsdl:1") UndefineTMSpec arg0)
		throws ImplementationExceptionResponse,
		NoSuchNameExceptionResponse, SecurityExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		aletm.undefineTMSpec(arg0.getSpecName());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
	
	return new UndefineTMSpecResult();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:17,代码来源:ALETMServicePortTypeImpl.java

示例14: validate

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
public Credential validate(Credential credential, RequestData data) throws WSSecurityException {
  	// credential : credential to validate from client
  	// data : data provided from server (ServerPasswordCallback), meaningless
      //Credential cred = super.validate(credential, data);
  	String userId = credential.getUsernametoken().getName();
  	String password = credential.getUsernametoken().getPassword();
  	
  	ALEACImpl aleac = ALEACImpl.getInstance();
  	try {
	if(aleac.login(userId, password)) {
		return credential;
	} else {
		return null;
	}
} catch (SecurityException e) {
	throw new WSSecurityException(e.getMessage());
}
      /*
      UsernameToken ut = credential.getUsernametoken();
      WSUsernameTokenPrincipalImpl principal = 
          new WSUsernameTokenPrincipalImpl(ut.getName(), ut.isHashed());
      principal.setCreatedTime(ut.getCreated());
      principal.setNonce(principal.getNonce());
      principal.setPassword(ut.getPassword());
      principal.setPasswordType(ut.getPasswordType());
      
      Subject subject = new Subject();
      subject.getPrincipals().add(principal);
      if ("Alice".equals(ut.getName())) {
          subject.getPrincipals().add(new SimpleGroup("manager", ut.getName()));
      }
      subject.getPrincipals().add(new SimpleGroup("worker", ut.getName()));
      cred.setSubject(subject);
      
      return cred;
      */
  }
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:38,代码来源:CustomUTValidator.java

示例15: getClientIdentity

import org.fosstrak.ale.exception.SecurityException; //导入方法依赖的package包/类
@Override
@WebResult(name = "GetClientIdentityResult", targetNamespace = "urn:epcglobal:aleac:wsdl:1", partName = "getClientIdentityReturn")
@WebMethod
public ACClientIdentity getClientIdentity(
		@WebParam(partName = "parms", name = "GetClientIdentity", targetNamespace = "urn:epcglobal:aleac:wsdl:1") GetClientIdentity arg0)
		throws NoSuchClientIdentityExceptionResponse,
		UnsupportedOperationExceptionResponse, SecurityExceptionResponse,
		ImplementationExceptionResponse {
	try {
		aleac.checkAccess(authScope, Thread.currentThread().getStackTrace()[1].getMethodName());
		return aleac.getClientIdentity(arg0.getIdentityName());
	} catch (SecurityException e) {
		throw new SecurityExceptionResponse(e.getMessage(), e);
	}
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:16,代码来源:ALEACServicePortTypeImpl.java


注:本文中的org.fosstrak.ale.exception.SecurityException.getMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。