[picketlink-commits] Picketlink SVN: r392 - in federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust: auth and 1 other directories.

picketlink-commits at lists.jboss.org picketlink-commits at lists.jboss.org
Wed Sep 8 14:54:58 EDT 2010


Author: anil.saldhana at jboss.com
Date: 2010-09-08 14:54:57 -0400 (Wed, 08 Sep 2010)
New Revision: 392

Modified:
   federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/WSTrustJAXBFactory.java
   federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/WSTrustUtil.java
   federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/auth/AbstractSTSLoginModule.java
   federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/handlers/STSSecurityHandler.java
Log:
suppress warnings

Modified: federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/WSTrustJAXBFactory.java
===================================================================
--- federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/WSTrustJAXBFactory.java	2010-09-08 18:53:26 UTC (rev 391)
+++ federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/WSTrustJAXBFactory.java	2010-09-08 18:54:57 UTC (rev 392)
@@ -164,8 +164,7 @@
     * @param response the XML source containing the security token response message.
     * @return the constructed {@code BaseRequestSecurityTokenResponse} instance. According to the WS-Trust
     *         specification, the returned object will be an instance of {@code RequestSecurityTokenResponseCollection}.
-    */
-   @SuppressWarnings("unchecked")
+    */ 
    public BaseRequestSecurityTokenResponse parseRequestSecurityTokenResponse(Source response) throws WSTrustException
    {
       Node documentNode = null;

Modified: federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/WSTrustUtil.java
===================================================================
--- federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/WSTrustUtil.java	2010-09-08 18:53:26 UTC (rev 391)
+++ federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/WSTrustUtil.java	2010-09-08 18:54:57 UTC (rev 392)
@@ -76,8 +76,7 @@
  * </p>
  * 
  * @author <a href="mailto:sguilhen at redhat.com">Stefan Guilhen</a>
- */
- at SuppressWarnings("unchecked")
+ */ 
 public class WSTrustUtil
 {
 
@@ -264,6 +263,7 @@
     * @return a {@code byte[]} containing the secret; {@code null} if the specified entropy doesn't contain
     * any secret.
     */
+   @SuppressWarnings("rawtypes")
    public static byte[] getBinarySecret(EntropyType entropy)
    {
       byte[] secret = null;
@@ -289,6 +289,7 @@
     * @return {@code STSType}
     * @throws JAXBException
     */
+   @SuppressWarnings("unchecked")
    public static STSType getSTSConfiguration(InputStream stream) throws JAXBException
    {
       String pkgName = "org.picketlink.identity.federation.core.config";

Modified: federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/auth/AbstractSTSLoginModule.java
===================================================================
--- federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/auth/AbstractSTSLoginModule.java	2010-09-08 18:53:26 UTC (rev 391)
+++ federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/auth/AbstractSTSLoginModule.java	2010-09-08 18:54:57 UTC (rev 392)
@@ -353,7 +353,7 @@
       }
    }
 
-   @SuppressWarnings("unchecked")
+   @SuppressWarnings({"unchecked", "rawtypes"})
    private void setPasswordStackingCredentials(final Builder builder)
    {
       final Map sharedState = (Map) this.sharedState;
@@ -440,7 +440,7 @@
       this.samlToken = samlToken;
    }
 
-   @SuppressWarnings("unchecked")
+   @SuppressWarnings({"unchecked", "rawtypes"})
    protected void setSharedToken(final Object token)
    {
       if (sharedState == null)

Modified: federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/handlers/STSSecurityHandler.java
===================================================================
--- federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/handlers/STSSecurityHandler.java	2010-09-08 18:53:26 UTC (rev 391)
+++ federation/branches/Branch_1_x/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/handlers/STSSecurityHandler.java	2010-09-08 18:54:57 UTC (rev 392)
@@ -205,8 +205,8 @@
         
         return true;
     }
-    
-    @SuppressWarnings("unchecked")
+     
+    @SuppressWarnings("rawtypes")
     private Element extractSecurityToken(final SOAPMessageContext messageContext, final QName securityQName, final QName tokenQName) 
     {
         try



More information about the picketlink-commits mailing list