Package javax.resource.spi

Examples of javax.resource.spi.SecurityException


      HornetQRACredential credential = HornetQRACredential.getCredential(mcf, subject, cxRequestInfo);

      // Null users are allowed!
      if (userName != null && !userName.equals(credential.getUserName()))
      {
         throw new SecurityException("Password credentials not the same, reauthentication not allowed");
      }

      if (userName == null && credential.getUserName() != null)
      {
         throw new SecurityException("Password credentials not the same, reauthentication not allowed");
      }

      if (isDestroyed.get())
      {
         throw new IllegalStateException("The managed connection is already destroyed");
View Full Code Here


/*  68 */     else if (subject != null)
/*     */     {
/*  71 */       PasswordCredential pwdc = GetCredentialAction.getCredential(subject, mcf);
/*  72 */       if (pwdc == null)
/*     */       {
/*  75 */         throw new SecurityException("No Password credentials found");
/*     */       }
/*  77 */       jc.name = pwdc.getUserName();
/*  78 */       jc.pwd = new String(pwdc.getPassword());
/*     */     }
/*     */     else
/*     */     {
/*  82 */       throw new SecurityException("No Subject or ConnectionRequestInfo set, could not get credentials");
/*     */     }
/*  84 */     return jc;
/*     */   }
View Full Code Here

/*     */     throws ResourceException
/*     */   {
/* 212 */     JmsCred cred = JmsCred.getJmsCred(this.mcf, subject, info);
/*     */
/* 215 */     if ((this.user != null) && (!this.user.equals(cred.name))) {
/* 216 */       throw new SecurityException("Password credentials not the same, reauthentication not allowed");
/*     */     }
/* 218 */     if ((cred.name != null) && (this.user == null)) {
/* 219 */       throw new SecurityException("Password credentials not the same, reauthentication not allowed");
/*     */     }
/*     */
/* 223 */     this.user = cred.name;
/*     */
/* 225 */     if (this.isDestroyed) {
View Full Code Here

      HornetQRACredential credential = HornetQRACredential.getCredential(mcf, subject, cxRequestInfo);

      // Null users are allowed!
      if (userName != null && !userName.equals(credential.getUserName()))
      {
         throw new SecurityException("Password credentials not the same, reauthentication not allowed");
      }

      if (userName == null && credential.getUserName() != null)
      {
         throw new SecurityException("Password credentials not the same, reauthentication not allowed");
      }

      if (isDestroyed.get())
      {
         throw new IllegalStateException("The managed connection is already destroyed");
View Full Code Here

      HornetQRACredential credential = HornetQRACredential.getCredential(mcf, subject, cxRequestInfo);

      // Null users are allowed!
      if (userName != null && !userName.equals(credential.getUserName()))
      {
         throw new SecurityException("Password credentials not the same, reauthentication not allowed");
      }

      if (userName == null && credential.getUserName() != null)
      {
         throw new SecurityException("Password credentials not the same, reauthentication not allowed");
      }

      if (isDestroyed.get())
      {
         throw new IllegalStateException("The managed connection is already destroyed");
View Full Code Here

TOP

Related Classes of javax.resource.spi.SecurityException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.