當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。