Annotation CordaSerializable

  • All Implemented Interfaces:
    java.lang.annotation.Annotation

    @Target(value = TYPE)@Retention(value = RUNTIME)@Inherited() 
    public @interface CordaSerializable
    
                        

    This annotation is a marker to indicate that a class is permitted and intended to be serialized as part of Corda messaging.

    Use this annotation on any class that needs to be serialized to be sent to a peer or to be stored in a database. Corda will only serialize and deserialize classes that are explicitly annotated or have custom serializers provided in order to avoid issues (and potential attacks) where data could be deserialized to a class that happens to be on the class path.

    It also makes it possible for a code reviewer to clearly identify the classes that can be passed on the wire.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail